branch: elpa/gptel
commit 15d056fb3fd8d0b594a5b24e96472a98e9be08dd
Author: Karthik Chikmagalur <karthikchikmaga...@gmail.com>
Commit: Karthik Chikmagalur <karthikchikmaga...@gmail.com>

    gptel: Raise an error if tool can't be found
    
    * gptel.el (gptel-get-tool): Raise an error, not user-error, if
    `gptel-get-tool' can't find a tool.  This makes it easier to debug
    when called from elsewhere.
---
 gptel.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gptel.el b/gptel.el
index e8808ae01e..b82b197f08 100644
--- a/gptel.el
+++ b/gptel.el
@@ -1624,7 +1624,7 @@ returned."
                   (cl-loop for (_ . tools) in gptel--known-tools
                            if (assoc path tools)
                            return (cdr it)))))
-      (user-error "No tool matches for %S" path)))
+      (error "No tool matches for %S" path)))
 
 (defun gptel-make-tool (&rest slots)
   "Make a gptel tool for LLM use.

Reply via email to