Skip to content

Commit

Permalink
Merge pull request #5465 from peterjc/patch-5
Browse files Browse the repository at this point in the history
Show parameter name in DataToolParameter exception
  • Loading branch information
bgruening committed Feb 11, 2018
2 parents d0b4503 + 29acb11 commit 587f20c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/tools/parameters/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1621,7 +1621,7 @@ def from_json(self, value, trans, other_values={}):
if trans.workflow_building_mode is workflow_building_modes.ENABLED:
return None
if not value and not self.optional:
raise ValueError("Specify a dataset of the required format / build.")
raise ValueError("Specify a dataset of the required format / build for parameter %s." % self.name)
if value in [None, "None", '']:
return None
if isinstance(value, dict) and 'values' in value:
Expand Down

0 comments on commit 587f20c

Please sign in to comment.