Skip to content

Commit 14c8556

Browse files
committed
Fix launcher error extraction
1 parent 0c14103 commit 14c8556

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/psij/launchers/script_based_launcher.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,7 @@ def is_launcher_failure(self, output: str) -> bool:
204204

205205
def get_launcher_failure_message(self, output: str) -> str:
206206
"""See :func:`~psij.Launcher.get_launcher_failure_message`."""
207-
return '\n'.join(output.split('\n')[:-2])
207+
# If, according to the above, it is a launcher failure, then
208+
# the magic line should not be present (aka, all of the output
209+
# is the failure).
210+
return output

0 commit comments

Comments
 (0)