Skip to content

Commit

Permalink
UI-1905: Now properly show error when e911 can't be updated'
Browse files Browse the repository at this point in the history
  • Loading branch information
JRMaitre committed Jan 12, 2016
1 parent 4a51419 commit c870f38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/common/submodules/e911/e911.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ define(function(require){
success: function(_data, status) {
callbacks.success && callbacks.success(_data);
},
error: function(_data, status) {
error: function(_data, status, globalHandler) {
if (_data.error === '400') {
if (data.message === 'multiple_choice') {
callbacks.multipleChoices && callbacks.multipleChoices(_data.data.multiple_choice.dash_e911);
Expand All @@ -198,7 +198,7 @@ define(function(require){
}
}
else {
callbacks.error && callbacks.error(_data.data);
globalHandler(_data, { generateError: true });
}
}
});
Expand Down

0 comments on commit c870f38

Please sign in to comment.