You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error message was not as intuitive as it could have been.
It would be more intuitive for the keygen to create a directory if one doesn't exist for the file, or at the very least mention that the directory does not exist rather than it failing to open.
As this improvement could be undesirable for the user or cause issues, it would be worthwhile to also have a flag to prevent creation of any directories (if applicable for the user).
What were you trying to do
I was trying to generate a new key pair.
What happened
The console output:
~$ rage-keygen -o ~/.config/age/age.key
Error: Failed to write to output: Failed to open file '/home/marcel/.config/age/age.key'
[ Did rage not do what you expected? Could an error be more useful? ]
[ Tell us: https://str4d.xyz/rage/report
The output implies that a file exists which is trying to be opened.
What I had to do instead was create the directory manually with mkdir, and then create the key pair file within it.
The text was updated successfully, but these errors were encountered:
General Info
The error message was not as intuitive as it could have been.
It would be more intuitive for the keygen to create a directory if one doesn't exist for the file, or at the very least mention that the directory does not exist rather than it failing to open.
As this improvement could be undesirable for the user or cause issues, it would be worthwhile to also have a flag to prevent creation of any directories (if applicable for the user).
What were you trying to do
I was trying to generate a new key pair.
What happened
The console output:
The output implies that a file exists which is trying to be opened.
What I had to do instead was create the directory manually with
mkdir
, and then create the key pair file within it.The text was updated successfully, but these errors were encountered: