| Index: remoting/webapp/crd/js/oauth2.js
|
| diff --git a/remoting/webapp/crd/js/oauth2.js b/remoting/webapp/crd/js/oauth2.js
|
| index 69edafc3af679888d4ce7e00ca651d03775c8915..d91da5df096abbd6508fb6f1a412eaf9e79fe4c7 100644
|
| --- a/remoting/webapp/crd/js/oauth2.js
|
| +++ b/remoting/webapp/crd/js/oauth2.js
|
| @@ -323,7 +323,7 @@ remoting.OAuth2.prototype.doAuthRedirect = function(onDone) {
|
| remoting.OAuth2.prototype.exchangeCodeForToken = function(code, onDone) {
|
| /** @param {!remoting.Error} error */
|
| var onError = function(error) {
|
| - console.error('Unable to exchange code for token: ', error);
|
| + console.error('Unable to exchange code for token: ' + error.toString());
|
| };
|
|
|
| remoting.oauth2Api.exchangeCodeForTokens(
|
| @@ -375,7 +375,7 @@ remoting.OAuth2.prototype.getToken = function() {
|
| resolve(that.getAccessTokenInternal_()['token']);
|
| }
|
| } else {
|
| - reject(remoting.Error.NOT_AUTHENTICATED);
|
| + reject(new remoting.Error(remoting.Error.Tag.NOT_AUTHENTICATED));
|
| }
|
| });
|
| };
|
|
|