As a developer I want to unify the way we turn exceptions into error messages to be shown to the user.
Currently, we tend to just do str(e). For some exceptions it's not that easy. E.g., for OSErrors it's better to do e.strerror otherwise we get an ugly [Error 7] (or something to that effect) prefix.
It would pay off investing the time once to find a unified and principled approach to turn all standard library exceptions into nice error messages (maybe there's already a library for that?).
As a developer I want to unify the way we turn exceptions into error messages to be shown to the user.
Currently, we tend to just do
str(e)
. For some exceptions it's not that easy. E.g., forOSError
s it's better to doe.strerror
otherwise we get an ugly[Error 7]
(or something to that effect) prefix.It would pay off investing the time once to find a unified and principled approach to turn all standard library exceptions into nice error messages (maybe there's already a library for that?).