rsrc icon indicating copy to clipboard operation
rsrc copied to clipboard

More detailed error messages (use xerrors and "%w")

Open akavel opened this issue 5 years ago • 0 comments

The error that showed up in #35 was confusing enough that even I wasn't sure where it comes from. If the message gave more details (like maybe at least: "error: reading .ico file: bad magic number"), this could potentially be already enough for the reporter to get a hint at how to resolve the issue (as they did once they learnt what it's about).

[Later in the future, possibly some extra hint messages could be added in some cases, like in #35 in particular rsrc could show a hint like: "Hint: Have you maybe renamed a .png file to .ico? If yes, this unfortunately won't work, you need to use a proper converter."]

akavel avatar Jan 04 '21 08:01 akavel