Skip to content

Commit

Permalink
Improve SchedulerError message in `PbsBaseClass._parse_joblist_out…
Browse files Browse the repository at this point in the history
…put` (#2995)

Include the return value and content of `stdout` and `stderr`.
  • Loading branch information
chrisjsewell authored and sphuber committed Jun 13, 2019
1 parent a27811e commit 3b3f597
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aiida/schedulers/plugins/pbsbaseclasses.py
Expand Up @@ -380,7 +380,8 @@ def _parse_joblist_output(self, retval, stdout, stderr):
_LOGGER.warning("Warning in _parse_joblist_output, non-empty "
"(filtered) stderr='{}'".format(filtered_stderr))
if retval != 0:
raise SchedulerError("Error during qstat parsing (_parse_joblist_output function)")
raise SchedulerError("Error during qstat parsing, retval={}\n"
"stdout={}\nstderr={}".format(retval, stdout, stderr))

jobdata_raw = [] # will contain raw data parsed from qstat output
# Get raw data and split in lines
Expand Down

0 comments on commit 3b3f597

Please sign in to comment.