crate-ci / cargo-release

Cargo subcommand `release`: everything about releasing a rust crate.
Apache License 2.0
1.33k stars 112 forks source link

Poor error message when hook command fails #779

Closed mo8it closed 5 months ago

mo8it commented 5 months ago

I used a script as a hook command:

pre-release-hook = ["./release-hook.sh"]

Then I got the error: error: Permision denied (os error 13) (something similar in red, I don't remember the exact wording

For a first-time user of cargo-release, it took me a while to realize that the permission error is caused by the hook. I just had to run chmod u+x release-hook.sh.

Providing the origin of an error would be awesome 🥰