Skip to content
Snippets Groups Projects
Commit e99474db authored by Brady James Garvin's avatar Brady James Garvin
Browse files

Fixed misleading error message for database connection failures.

parent 4d978843
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,7 @@ def main(): ...@@ -28,7 +28,7 @@ def main():
app = MoviesApp() app = MoviesApp()
app.run() app.run()
except SQLAlchemyError as exception: except SQLAlchemyError as exception:
print('Initial database connection failed!', file=stderr) print('Database connection failed!', file=stderr)
print(f'Cause: {exception}', file=stderr) print(f'Cause: {exception}', file=stderr)
exit(1) exit(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment