Bug 1047164 - Handle authentication errors (e.g. token expiry) for FxA Loop sessions and notify users. r=jaws

This commit is contained in:
Matthew Noorenberghe
2014-10-03 03:17:32 -07:00
parent 5a8b2ae7a8
commit 1ee13023c7
18 changed files with 546 additions and 78 deletions

View File

@@ -78,7 +78,7 @@ loop.Client = (function($) {
_failureHandler: function(cb, error) {
var message = "HTTP " + error.code + " " + error.error + "; " + error.message;
console.error(message);
cb(new Error(message));
cb(error);
},
/**