Merge pull request #798 from blankenberg/tool_error_fixes

[15.07] Fix for not respecting tool errors when trying to execute tools
This commit is contained in:
Dannon Baker
2015-09-25 13:39:17 -04:00
+2
View File
@@ -1517,6 +1517,8 @@ class Tool( object, Dictifiable ):
group_errors[-1] = { '__index__': 'Cannot add repeat (max size=%i).' % input.max }
any_group_errors = True
rep_index += 1
if any_group_errors:
errors[ input.name ] = group_errors
elif isinstance( input, Conditional ):
group_state = state[input.name]
group_prefix = "%s|" % ( key )