about summary refs log tree commit diff
path: root/config.el
diff options
context:
space:
mode:
Diffstat (limited to 'config.el')
-rw-r--r--config.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/config.el b/config.el
index 14ea16faf271..d5a2f2545ff3 100644
--- a/config.el
+++ b/config.el
@@ -997,11 +997,12 @@
     (concat alembic-command " " args)))
 
 (defun +grfn/extract-alembic-migration-name (output)
-  (string-match (rx (0+ anything) "Generating "
-                    (group (one-or-more (not (syntax whitespace))))
-                    " ... done"
-                    (0+ anything))
-                output)
+  (unless (string-match (rx (0+ anything) "Generating "
+                            (group (one-or-more (not (syntax whitespace))))
+                            " ..." (one-or-more (syntax whitespace)) "done"
+                            (0+ anything))
+                        output)
+    (user-error "Error: %s" output))
   (match-string-no-properties 1 output))
 
 (defun -run-alembic (args)