From: Rowan Hart Date: Mon, 24 Feb 2020 14:56:07 +0000 (-0500) Subject: Clarified an error message on failure to find 'migrations' path. X-Git-Tag: rel_1_4_1~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53c15cf1c75232f3f19d70c093c6c93c30a679f8;p=thirdparty%2Fsqlalchemy%2Falembic.git Clarified an error message on failure to find 'migrations' path. 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 --- diff --git a/alembic/script/base.py b/alembic/script/base.py index 81bded47..fea9e879 100644 --- a/alembic/script/base.py +++ b/alembic/script/base.py @@ -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 index 00000000..9c4cb2c1 --- /dev/null +++ b/docs/build/unreleased/663.rst @@ -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.