feat(appimage): more useful error message - #358
Conversation
FabianLars-crabnebula
left a comment
There was a problem hiding this comment.
thanks for the pr :)
679900f to
9ebd85d
Compare
9ebd85d to
567f17b
Compare
|
I wonder whether we should just keep it with the debug log https://github.com/mrcjkb/cargo-packager/blob/ac7495aab7eaee0fb10514a24cf56721b5a5940f/crates/packager/src/package/appimage/mod.rs#L193 Still a bit unhappy about a breaking change just for this tbh |
|
Another alternative without introducing a breaking change could be to use .map_err(|err| io::Error::other(format!("Error running '{0}' script: {err}", sh_file.display())))
.map_err(crate::Error::AppImageScriptFailed)?; |
ac7495a to
eb55ec1
Compare
|
Hey @FabianLars-crabnebula - why did this not get merged? Ahhh. Because of the breaking change. Yeah, I agree. NO breaking changes for things like this. |
What would the error look like then on the dev/user side? At first glance I would have expected the io error to be lost in the conversion, is it not? |
If for some reason one wanted to pattern match on the underlying |
|
oops i missed the |
|
Ah, you'll need to sign your commits for me to merge this, sorry.
|
|
Actually we queued a few breaking dependency updates so we can break the error enum as well but tbh i kinda prefer this new way. |
eb55ec1 to
fd4c9d3
Compare
Edit: Fixed. |
fd4c9d3 to
5ffd7a1
Compare
Signed-off-by: Marc Jakobi <marc@jakobi.dev>
5ffd7a1 to
2f07afb
Compare
|
thanks! |
3b29f88
I found the error message when executing the AppImage build script a bit confusing (also, the name of the script in the error message is wrong).
This PR adds the full path to the script.