-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide a better error on invalid filename or missing directory
Closes #530.
- Loading branch information
Showing
4 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
rage/tests/cmd/rage-keygen/gen-output-invalid-filename.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
bin.name = "rage-keygen" | ||
args = "-o ''" | ||
status = "failed" | ||
stdout = "" | ||
stderr = """ | ||
Error: Failed to open output: invalid filename ''. | ||
[ Did rage not do what you expected? Could an error be more useful? ] | ||
[ Tell us: https://str4d.xyz/rage/report ] | ||
""" |
10 changes: 10 additions & 0 deletions
10
rage/tests/cmd/rage-keygen/gen-output-missing-directory.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
bin.name = "rage-keygen" | ||
args = "-o does-not-exist/key.txt" | ||
status = "failed" | ||
stdout = "" | ||
stderr = """ | ||
Error: Failed to open output: directory 'does-not-exist' does not exist. | ||
[ Did rage not do what you expected? Could an error be more useful? ] | ||
[ Tell us: https://str4d.xyz/rage/report ] | ||
""" |