emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/kiwix 4968e3d 055/192: error when query is invalid.


From: Stefan Monnier
Subject: [elpa] externals/kiwix 4968e3d 055/192: error when query is invalid.
Date: Sat, 19 Dec 2020 00:41:32 -0500 (EST)

branch: externals/kiwix
commit 4968e3dabf7729d9ad37a2367ad0dc7648d3012f
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>

    error when query is invalid.
---
 kiwix.el | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/kiwix.el b/kiwix.el
index d0b6fcf..20c47cd 100644
--- a/kiwix.el
+++ b/kiwix.el
@@ -183,7 +183,12 @@ for query string and library interactively."
                          (region-beginning) (region-end))
                       (thing-at-point 'symbol))))))
     (message (format "library: %s, query: %s" library query))
-    (kiwix-query query library)))
+    (if (or (null library)
+            (string-empty-p library)
+            (null query)
+            (string-empty-p query))
+        (error "Your query is invalid")
+      (kiwix-query query library))))
 
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]