Unhelpful error message on invalid file #415
shepting
started this conversation in
UX reports
Replies: 1 comment
-
That's definitely a bad error message, we'll work on it, thank you for reporting it!
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was recently using
age
in an automated fashion for some CI machines and received the following message:Unfortunately, since the error message didn't specify either:
filename
of the invalid file orI spent 30 minutes investigating what was wrong with my private key on my machine without realizing it was the "encrypted" file that was failing to parse!
My command was something like
cat ~/setup/id_rsa.encrypted | age --decrypt --identity ~/.age/ci.key --output ~/.ssh/id_rsa
so specifying that it wasSTDIN
that was failing could help. Even moreso if it gave the first line ofSTDIN
that didn't look right.Beta Was this translation helpful? Give feedback.
All reactions