If Fabric encounters an error code when executing the local () command, it throws an exception, for example:
Fatal error: local() encountered an error (return code 127) while executing '...'
However, it does not actually show any stdout or stderr from the command, even if you specify capture = True, which is very useless. There are explanations on how to do this , but since Fabric throws an exception, you cannot save the result from local () and inherit it.
How do you get Fabric to display useful error messages during errors that occur when running local ()?
Cerin source share