]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
Clarified an error message on failure to find 'migrations' path.
authorRowan Hart <rowanbhart@gmail.com>
Mon, 24 Feb 2020 14:56:07 +0000 (09:56 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 25 Feb 2020 14:35:12 +0000 (09:35 -0500)
Error message for "path doesn't exist" when loading up script environment
now displays the absolute path.  Pull request courtesy Rowan Hart.

Fixes: #663
Closes: #664
Pull-request: https://github.com/sqlalchemy/alembic/pull/664
Pull-request-sha: 29ff74c2678ab73f6c5a646477c840f5cdded234

Change-Id: Ibaa8ad444560e481ba96e0c0e3ba31ec7c7c1385

alembic/script/base.py
docs/build/unreleased/663.rst [new file with mode: 0644]

index 81bded4741e8a844dc5ec42c4e634f1e9a80b117..fea9e879f2ad459cd8ac8d9253108f10c8c27095 100644 (file)
@@ -67,7 +67,7 @@ class ScriptDirectory(object):
             raise util.CommandError(
                 "Path doesn't exist: %r.  Please use "
                 "the 'init' command to create a new "
-                "scripts folder." % dir
+                "scripts folder." % os.path.abspath(dir)
             )
 
     @property
diff --git a/docs/build/unreleased/663.rst b/docs/build/unreleased/663.rst
new file mode 100644 (file)
index 0000000..9c4cb2c
--- /dev/null
@@ -0,0 +1,6 @@
+.. change::
+    :tags: bug, environment
+    :tickets: 663
+
+    Error message for "path doesn't exist" when loading up script environment
+    now displays the absolute path.  Pull request courtesy Rowan Hart.