File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -123,15 +123,17 @@ def run_command_with_output(self, command):
123123 except subprocess .CalledProcessError as e :
124124 out = e .output .decode ('latin1' )
125125 proxy_out = self .fetch_proxy_output ()
126- raise ValueError (
126+ error = ValueError (
127127 f"Failed to run command: { command } . "
128128 f"Return code: { e .returncode } . "
129129 f"\n ---Begin proxy output:---\n { proxy_out } ---End proxy output--- "
130130 f"\n ---Begin output:---\n { out } ---End output---. "
131131 f"Check your local log, stdout, and stderr "
132132 f"as well as remote logs{ ' at ' + self .cloudwatch_url if self .cloudwatch_url else '' } "
133133 f"for more details, if needed."
134- ) from e
134+ )
135+ self .logger .error (f"Failed to run command: { e } " , exc_info = error )
136+ raise error from e
135137
136138 def fetch_proxy_output (self ):
137139 array_of_byte_strings = []
You can’t perform that action at this time.
0 commit comments