Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad error message when adding user before initializing #5

Closed
chiptopher opened this issue Nov 4, 2018 · 1 comment
Closed

Bad error message when adding user before initializing #5

chiptopher opened this issue Nov 4, 2018 · 1 comment
Labels
bug Something isn't working

Comments

@chiptopher
Copy link
Owner

Bug report

When attempting to guet add without having done guet init, it prints a stack trace of the saying the database cannot be accessed.

Actual behavior?

(venv) ➜  ~ guet add us "name" email@localhost
Traceback (most recent call last):
  File "/home/user/workspace/guet/venv/bin/guet", line 11, in <module>
    load_entry_point('guet==1.0.0', 'console_scripts', 'guet')()
  File "/home/user/workspace/guet/venv/lib/python3.6/site-packages/guet-1.0.0-py3.6.egg/guet/main.py", line 22, in main
  File "/home/user/workspace/guet/venv/lib/python3.6/site-packages/guet-1.0.0-py3.6.egg/guet/executor.py", line 26, in execute
  File "/home/user/workspace/guet/venv/lib/python3.6/site-packages/guet-1.0.0-py3.6.egg/guet/commands/addcommitter.py", line 42, in execute
  File "/home/user/workspace/guet/venv/lib/python3.6/site-packages/guet-1.0.0-py3.6.egg/guet/gateway.py", line 108, in add_user
  File "/home/user/workspace/guet/venv/lib/python3.6/site-packages/guet-1.0.0-py3.6.egg/guet/gateway.py", line 121, in get_user
sqlite3.OperationalError: unable to open database file

Expected behavior?

An error message saying something to the effect of:
You must initialize guet before adding committers!

@chiptopher chiptopher added the bug Something isn't working label Nov 4, 2018
@chiptopher
Copy link
Owner Author

Same as #16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant