Skip to content

Commit 5c7d5f6

Browse files
committed
Less confusing error messages
1 parent 7f416e4 commit 5c7d5f6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

runner.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,11 +1505,9 @@ def run(self):
15051505
print('####################################################################################\n\n', TerminalColors.ENDC)
15061506

15071507
except FileNotFoundError as e:
1508-
error_helpers.log_error('Docker command failed.', e, runner._run_id)
1508+
error_helpers.log_error('File or executable not found', e, runner._run_id)
15091509
except subprocess.CalledProcessError as e:
1510-
error_helpers.log_error('Docker command failed', 'Stdout:', e.stdout, 'Stderr:', e.stderr, runner._run_id)
1511-
except KeyError as e:
1512-
error_helpers.log_error('Was expecting a value inside the usage_scenario.yml file, but value was missing: ', e, runner._run_id)
1510+
error_helpers.log_error('Command failed', 'Stdout:', e.stdout, 'Stderr:', e.stderr, runner._run_id)
15131511
except RuntimeError as e:
15141512
error_helpers.log_error('RuntimeError occured in runner.py: ', e, runner._run_id)
15151513
except BaseException as e:

0 commit comments

Comments
 (0)