From c870f38abc863247341f2da6d02b85ad138756c5 Mon Sep 17 00:00:00 2001 From: Jean-Roch Maitre <jr@2600hz.com> Date: Tue, 12 Jan 2016 09:45:59 -0800 Subject: [PATCH] UI-1905: Now properly show error when e911 can't be updated' --- apps/common/submodules/e911/e911.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/common/submodules/e911/e911.js b/apps/common/submodules/e911/e911.js index 0957e40a6..0c4102cf4 100644 --- a/apps/common/submodules/e911/e911.js +++ b/apps/common/submodules/e911/e911.js @@ -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); @@ -198,7 +198,7 @@ define(function(require){ } } else { - callbacks.error && callbacks.error(_data.data); + globalHandler(_data, { generateError: true }); } } });