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

Better error reporting of GPG failures #60

Open
repli2dev opened this issue Jun 26, 2016 · 2 comments
Open

Better error reporting of GPG failures #60

repli2dev opened this issue Jun 26, 2016 · 2 comments

Comments

@repli2dev
Copy link

I run into strange situation when my gpg via terminal worked (exactly the same command copied from the log) however the plugin failed to loaded with "Message could not be decrypted! (Press ENTER)".

The problem was in that the gpg worked but returned code 2 as it encounered on malformed GPG_AGENT_INFO variable and it would be really nice if I haven't spent two hours of gun-shot debugging to find this :-)

@jamessan
Copy link
Owner

Suggestions welcome. I don't think there's much information from gpg in such a situation (but don't have an environment to check right now).

@repli2dev
Copy link
Author

Thanks for reply :-) In my situation changing the message "Message could not be encrypted! (Press ENTER)" to something like "Message could not be encrypted as gpg command exited with non zero code! (Press ENTER)" would be much more helpful.

Another idea would be to capture the error output and in show it in the case of failure (such as this). But that would be probably overkill as the first suggested approach seems to convey the main message where to look.

@jamessan jamessan added this to To do in Improved Error Reporting via automation Sep 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

2 participants