Skip to content

Commit

Permalink
fixed error message on bulk upload same origin/destination
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrFr committed Dec 3, 2019
1 parent 64dd356 commit fdca0a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions repair/apps/asmfa/serializers/bulkcreate.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def validate(self, attrs):
file_type=self.input_file_ext.replace('.', ''),
encoding=self.encoding
)
error_mask.add_message(message)
raise ValidationError(
error_mask.messages, url
)
Expand Down
2 changes: 1 addition & 1 deletion repair/apps/utils/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MakeValid(GeoFunc):


class BulkValidationError(Exception):
def __init__(self, message, path=''):
def __init__(self, message='error', path=''):
super().__init__(message)
self.message = message
self.path = path
Expand Down

0 comments on commit fdca0a7

Please sign in to comment.