]> git.eshelyaron.com Git - sweep.git/commitdiff
ENHANCED: More indicative error on failure to locate sweep-module
authorEshel Yaron <me@eshelyaron.com>
Thu, 29 Sep 2022 17:46:51 +0000 (20:46 +0300)
committerEshel Yaron <me@eshelyaron.com>
Thu, 29 Sep 2022 17:50:48 +0000 (20:50 +0300)
sweeprolog.el

index 1f03c2cb6d957c4d9e64ef4f7cbf0e37e1d69b17..a759ce427935166c2e136d21355efb4e72e1087b 100644 (file)
@@ -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))