georgebrock / 1pass

A command line interface for 1Password
MIT License
988 stars 54 forks source link

Use .__str__ rather than .message to print errors. #24

Open jorgenpt opened 9 years ago

jorgenpt commented 9 years ago

This helps because IOError does not assign `message', but str prints both the path and the error that occurred.

Old behavior:

$ bin/1pass foo
1pass: Error: 

New behavior:

$ bin/1pass foo               
1pass: Error: [Errno 2] No such file or directory: '/home/jorgen/Dropbox/1Password.agilekeychain/data/default/encryptionKeys.js'
jorgenpt commented 9 years ago

Fixes issue #7.

AlJohri commented 7 years ago

@AdamIsrael LGTM 👍