Skip to content

Commit

Permalink
Changes error from a ValidationError to a TileValidationError. re #4725
Browse files Browse the repository at this point in the history
  • Loading branch information
chiatt committed Apr 3, 2019
1 parent 6f1634d commit c66e186
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arches/app/models/tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,9 @@ def check_for_missing_nodes(self, request):
else:
missing_nodes.append(node.name)
if missing_nodes != []:
message = _('This card requires values for the following:')
raise ValidationError(message, (', ').join(missing_nodes))
message = _('This card requires values for the following: ')
message += (', ').join(missing_nodes)
raise TileValidationError(message)

def validate(self, errors=None):
for nodeid, value in self.data.iteritems():
Expand Down

0 comments on commit c66e186

Please sign in to comment.