def METHOD_NAME(exc: Exception) -> str:
    """Format nicely the exception from a stress command failure."""
    if hasattr(exc, "result") and exc.result.failed:
        return f"Stress command completed with bad status {exc.result.exited}: {exc.result.stderr:.100}"
    return f"Stress command execution failed with: {exc}"