diff options
author | Griffin Smith <root@gws.fyi> | 2020-05-18T15·33-0400 |
---|---|---|
committer | Griffin Smith <root@gws.fyi> | 2020-05-18T15·33-0400 |
commit | 27f32372798d3727c277c6487a8789e72e929100 (patch) | |
tree | 22f744a3de2f2c528a1ce58299521cd44e62a0ba | |
parent | 5ff3dad0e53bd5cf17752b420ca37b8ba09431f2 (diff) |
fix alembic migration extraction
-rw-r--r-- | config.el | 11 |
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) |