diff options
author | Rowan Hart <rowanbhart@gmail.com> | 2020-02-24 09:56:07 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-02-25 09:35:12 -0500 |
commit | 53c15cf1c75232f3f19d70c093c6c93c30a679f8 (patch) | |
tree | 6e3958e27d5ed85968271e50781539a1e0b8ac49 /alembic/script | |
parent | 1dc57cd4475f81b6a00cd1723766d014b0d0b9b1 (diff) | |
download | alembic-53c15cf1c75232f3f19d70c093c6c93c30a679f8.tar.gz |
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
Diffstat (limited to 'alembic/script')
-rw-r--r-- | alembic/script/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alembic/script/base.py b/alembic/script/base.py index 81bded4..fea9e87 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 |