pyproject-hooks icon indicating copy to clipboard operation
pyproject-hooks copied to clipboard

Propagate 'message' in BackendInvalid

Open aws-taylor opened this issue 2 years ago • 0 comments

Propagate the 'message' field up to the parent Exception class so that errors are displayed more clearly on the command line. Prior to this change, a user sees the following when a BackendInvalid exception is thrown by a build backend:

> python3 -m pip install <some package>
<traceback>
pip._vendor.pep517.wrappers.BackendInvalid

And after, the user will see:

python3 -m pip install <some package>
<traceback>
pip._vendor.pep517.wrappers.BackendInvalid: <message>

aws-taylor avatar Jun 15 '22 16:06 aws-taylor