Skip to content

Commit

Permalink
ref
Browse files Browse the repository at this point in the history
  • Loading branch information
pantsel committed Dec 30, 2018
1 parent 2006b84 commit abc5eed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions assets/js/app/core/models/DataModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,7 @@
},
function onError(error) {
$log.error('DataModel.load() failed.', error, self.endpoint, parameters);
if(error.data && error.data.body && error.data.body.message) {
MessageService.error(error.data.body.message)
}
MessageService.error(_.get(error, 'data.body.message', 'An unexpected error has occurred...'))
}
)
;
Expand Down

0 comments on commit abc5eed

Please sign in to comment.