diff --git a/tools/python/maps_generator/generator/exceptions.py b/tools/python/maps_generator/generator/exceptions.py index 5491c068d9..3f8c94f2e3 100644 --- a/tools/python/maps_generator/generator/exceptions.py +++ b/tools/python/maps_generator/generator/exceptions.py @@ -35,4 +35,9 @@ class FailedTest(MapsGeneratorError): def wait_and_raise_if_fail(p): if p.wait() != os.EX_OK: - raise BadExitStatusError(f"The launch of {' '.join(p.args)} failed.") + args = p.args + logs = p.output.name + if p.error.name != logs: + logs += " and " + p.error.name + msg = f"The launch of {args.pop(0)} failed.\nArguments used: {' '.join(args)}\nSee details in {logs}" + raise BadExitStatusError(msg)