Skip to content

Commit

Permalink
Fix #67 - print error message and exit when started without params.
Browse files Browse the repository at this point in the history
  • Loading branch information
chovanecm committed Jul 9, 2017
1 parent 5dee1d2 commit 8fa7445
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sacredboard/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ def run(debug, no_browser, m, mu, mc, f):
elif f:
app.config["data"] = FileStorage(f)
else:
print("Must specify either a mongodb instance or \
a path to a file storage.")
print("Must specify either a mongodb instance or " +
"a path to a file storage.\nRun sacredboard --help "
"for more information.", file=sys.stderr)
sys.exit(1)

app.config['DEBUG'] = debug
app.debug = debug
Expand Down

0 comments on commit 8fa7445

Please sign in to comment.