Service must call "fail" not "error"
Refs: #7564
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -203,7 +203,7 @@ define(function(require) { | ... | @@ -203,7 +203,7 @@ define(function(require) { |
203 | var apiHandler = globalOptions.api || function(apiName, data) {}; | 203 | var apiHandler = globalOptions.api || function(apiName, data) {}; |
204 | return apiHandler(apiName, data, {sessionId: self.get('sessionId')}).always(function() { | 204 | return apiHandler(apiName, data, {sessionId: self.get('sessionId')}).always(function() { |
205 | self.unset('errorMessage'); | 205 | self.unset('errorMessage'); |
206 | }).done(applyLoginResults).error(function(xhr) { | 206 | }).done(applyLoginResults).fail(function(xhr) { |
207 | if (xhr.responseJSON && xhr.responseJSON.errorMessage) { | 207 | if (xhr.responseJSON && xhr.responseJSON.errorMessage) { |
208 | self.set('errorMessage', xhr.responseJSON.errorMessage); | 208 | self.set('errorMessage', xhr.responseJSON.errorMessage); |
209 | } | 209 | } | ... | ... |
-
Please register or sign in to post a comment