Skip to content

Commit

Permalink
Showing error messages only in one place.
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermechapiewski committed Jul 27, 2009
1 parent 0269c0d commit 0f11f52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/__init__.py
Expand Up @@ -23,4 +23,7 @@ def run():
config.put("drop_db_first", options.drop_db_first)

# If CLI was correctly parsed, execute db-migrate.
Main(config).execute()
try:
Main(config).execute()
except Exception, e:
CLI().error_and_exit(e.message)

0 comments on commit 0f11f52

Please sign in to comment.