Skip to content

Commit

Permalink
fix: provide details on error when failing to evaluate default resour…
Browse files Browse the repository at this point in the history
…ces (#1430)
  • Loading branch information
johanneskoester committed Feb 26, 2022
1 parent 9c73907 commit 04f39a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions snakemake/resources.py
Expand Up @@ -66,11 +66,12 @@ def callable(wildcards, input, attempt, threads, rulename):
):
# Missing input files are handled by the caller
raise WorkflowError(
"Failed to evaluate DefaultResources value "
"Failed to evaluate default resources value "
"'{}'.\n"
" String arguments may need additional "
"quoting. Ex: --default-resources "
"\"tmpdir='/home/user/tmp'\".".format(val)
"\"tmpdir='/home/user/tmp'\".".format(val),
e,
)
raise e
return value
Expand Down

0 comments on commit 04f39a9

Please sign in to comment.