Skip to content

Commit

Permalink
Improved error logging for planemo run.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Mar 10, 2017
1 parent 5fc1825 commit 525de8f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions planemo/galaxy/activity.py
Expand Up @@ -17,6 +17,8 @@
)

DEFAULT_HISTORY_NAME = "CWL Target History"
ERR_NO_SUCH_TOOL = ("Failed to find tool with ID [%s] in Galaxy - cannot execute job. "
"You may need to enable verbose logging and determine why the tool did not load. [%s]")


def execute(config, runnable, job_path, **kwds):
Expand All @@ -42,6 +44,10 @@ def _execute(config, runnable, job_path, **kwds):
inputs_representation = "cwl"
else:
inputs_representation = "galaxy"
try:
user_gi.tools.show_tool(tool_id)
except Exception as e:
raise Exception(ERR_NO_SUCH_TOOL % (tool_id, e))
run_tool_payload = dict(
history_id=history_id,
tool_id=tool_id,
Expand Down

0 comments on commit 525de8f

Please sign in to comment.