1pass icon indicating copy to clipboard operation
1pass copied to clipboard

Use .__str__ rather than .message to print errors.

Open jorgenpt opened this issue 10 years ago • 2 comments

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 avatar May 05 '15 20:05 jorgenpt

Fixes issue #7.

jorgenpt avatar May 05 '15 23:05 jorgenpt

@AdamIsrael LGTM 👍

AlJohri avatar Jun 17 '17 00:06 AlJohri