canonical / craft-cli

https://canonical-craft-cli.readthedocs-hosted.com/en/latest/
GNU Lesser General Public License v3.0
9 stars 15 forks source link

feat: add CraftCommandError #264

Closed tigarmo closed 3 months ago

tigarmo commented 3 months ago

This new error class has a stderr attribute that holds the error output of an executed command. As the class' docstring indicates, this new attribute is halfway between brief and details, verbosity-wise. It's meant to be used in cases where this error output is expected to be useful enough to the end user to make up for the extra text, even in "brief"-mode executions.

Fixes #260