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

Nicer error messages #17

Open
bartTC opened this issue Jan 11, 2013 · 5 comments
Open

Nicer error messages #17

bartTC opened this issue Jan 11, 2013 · 5 comments

Comments

@bartTC
Copy link

bartTC commented Jan 11, 2013

Kip displays a good error description, but there is no need to also write out the whole python traceback. As a user it wouldnt help me, just more confusing.

Just do this if I add --verbose or so.

martin ~/Dropbox/Lincoln Loop devs/secrets $ ./kip get vimeo.com
gpg: Entschlüsselung fehlgeschlagen: Geheimer Schlüssel ist nicht vorhanden
Traceback (most recent call last):
  File "./kip", line 519, in <module>
    sys.exit(main())
  File "./kip", line 107, in main
    retcode = CMDS[args.cmd](args)
  File "./kip", line 114, in cmd_get
    return show(args.filepart, args.is_print)
  File "./kip", line 310, in show
    username, password, notes = extract(filename)
  File "./kip", line 354, in extract
    username = parts[1]
IndexError: list index out of range
@bartTC
Copy link
Author

bartTC commented Jan 11, 2013

The actual error here might be in kip, that it can't handle gracefully that the private key is not valid for the kip db.

@grahamking
Copy link
Owner

Could you translate: "gpg: Entschlüsselung fehlgeschlagen: Geheimer Schlüssel ist nicht vorhanden"

Also, how can I reproduce?

@bartTC
Copy link
Author

bartTC commented Aug 28, 2013

"Secret key not valid". Try to delete your key files.

@grahamking
Copy link
Owner

Try to delete your key files

Is this a trick?

@bartTC
Copy link
Author

bartTC commented Aug 28, 2013

No, I think thats how I discovered this. I did not symlinked my dotfiles yet. You can make a backup if you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants