Permalink
Browse files

Improved error logging for ``planemo run``.

  • Loading branch information...
jmchilton committed Mar 10, 2017
1 parent 5fc1825 commit 525de8f6b0b830cb483c4a423752ce99cbba8155
Showing with 6 additions and 0 deletions.
  1. +6 −0 planemo/galaxy/activity.py
@@ -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):
@@ -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,

0 comments on commit 525de8f

Please sign in to comment.