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

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

[nongnu] elpa/sweeprolog a8d186092f 157/166: ENHANCED: More indicative e


From: ELPA Syncer
Subject: [nongnu] elpa/sweeprolog a8d186092f 157/166: ENHANCED: More indicative error on failure to locate sweep-module
Date: Fri, 30 Sep 2022 04:59:35 -0400 (EDT)

branch: elpa/sweeprolog
commit a8d186092f3d0e6f0f1cacf08a0b58b285b23875
Author: Eshel Yaron <me@eshelyaron.com>
Commit: Eshel Yaron <me@eshelyaron.com>

    ENHANCED: More indicative error on failure to locate sweep-module
---
 sweeprolog.el | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/sweeprolog.el b/sweeprolog.el
index 1f03c2cb6d..a759ce4279 100644
--- a/sweeprolog.el
+++ b/sweeprolog.el
@@ -149,7 +149,12 @@ inserted to the input history in 
`sweeprolog-top-level-mode' buffers."
                                  " -t"
                                  " halt"))
                                "\n")))))
-    (load sweep-module-path)))
+    (condition-case _
+        (load sweep-module-path)
+      (file-error (user-error
+                   (concat "Failed to locate `sweep-module'. "
+                           "Make sure SWI-Prolog is installed "
+                           "and up to date"))))))
 
 (defface sweeprolog-debug-prefix-face
   '((default :inherit shadow))



reply via email to

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