20898, "jeremiah-corrado", "Formatting of 'OS.SystemError' messages", "2022-10-24T15:04:23Z"
The SystemError class in the OS module currently produces error messages in the following format:
{Error-Class name}: {Error-Code description} ({message from the call-site})
In some cases, this implementation ends up producing a long or somewhat redundant string. For example:
NotADirectoryError: Not a directory (in moveDir(some/directory, not/a/directory.txt))
Should we rethink SystemErrors implementation of message()?
Would it be an improvement to remove the {Error-Code description} portion since these strings often align with the name of the error class?