Adding catch to refreshAdminToken. (#1631)

This commit is contained in:
Kenneth Geisshirt 2018-01-18 13:26:14 +01:00 committed by GitHub
parent a996a1a8b8
commit 0c67e2a834
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,7 @@ X.Y.Z Release notes
* None.
### Bug fixes
* [Object Server] Fixed a bug where errors in `refreshAdminToken` wasn't catched (#1627).
* [Object Server] Added `_getExitingUser` to the Chrome debugging support library.
### Internal

View File

@ -117,6 +117,9 @@ function refreshAdminToken(user, localRealmPath, realmUrl) {
parsedRealmUrl.set('pathname', json.path);
session._refreshAccessToken(user.token, parsedRealmUrl.href, json.syncLabel);
}
})
.catch((e) => {
print_error(e);
});
}