765b6b09 by Ean Schuessler

Service must call "fail" not "error"

Refs: #7564
1 parent 8b4d562b
...@@ -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 }
......