Skip to content

Commit 525de8f

Browse files
committed
Improved error logging for planemo run.
1 parent 5fc1825 commit 525de8f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

planemo/galaxy/activity.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
)
1818

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

2123

2224
def execute(config, runnable, job_path, **kwds):
@@ -42,6 +44,10 @@ def _execute(config, runnable, job_path, **kwds):
4244
inputs_representation = "cwl"
4345
else:
4446
inputs_representation = "galaxy"
47+
try:
48+
user_gi.tools.show_tool(tool_id)
49+
except Exception as e:
50+
raise Exception(ERR_NO_SUCH_TOOL % (tool_id, e))
4551
run_tool_payload = dict(
4652
history_id=history_id,
4753
tool_id=tool_id,

0 commit comments

Comments
 (0)