Skip to content

Commit

Permalink
Merge pull request #2208 from guerler/fix_error_message_001
Browse files Browse the repository at this point in the history
[16.04] Add fixed validation check for data_source tools URL parameter
  • Loading branch information
martenson committed May 1, 2016
2 parents 630a004 + d0447fe commit 787b351
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/galaxy/webapps/galaxy/controllers/tool_runner.py
Expand Up @@ -69,6 +69,8 @@ def __tool_404__():
# do param translation here, used by datasource tools
if tool.input_translator:
tool.input_translator.translate( params )
if 'runtool_btn' not in params.__dict__ and 'URL' not in params.__dict__:
error( 'Tool execution through the `tool_runner` requires a `runtool_btn` flag or `URL` parameter.' )
# We may be visiting Galaxy for the first time ( e.g., sending data from UCSC ),
# so make sure to create a new history if we've never had one before.
history = tool.get_default_history_by_trans( trans, create=True )
Expand Down

0 comments on commit 787b351

Please sign in to comment.