Skip to content

Commit

Permalink
Bug 1164713 - Return error string from FxAccounts. r=ferjm
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Lissy committed Aug 31, 2015
1 parent 8f7df35 commit 1489453
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion services/fxaccounts/FxAccountsManager.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ this.FxAccountsManager = {
}
);
}
return Promise.reject(reason);
return Promise.reject(reason.message ? { error: reason.message } : reason);
},

_getAssertion: function(aAudience, aPrincipal) {
Expand Down
1 change: 1 addition & 0 deletions services/fxaccounts/tests/xpcshell/test_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ add_test(function() {
do_throw("Unexpected success");
},
error => {
do_check_eq(error.error, ERROR_OFFLINE);
FxAccountsManager._fxAccounts._reset();
Services.io.offline = false;
certExpired = false;
Expand Down

0 comments on commit 1489453

Please sign in to comment.