Fix unhandled promise rejection warnings when access token refreshing fails

This commit is contained in:
Thomas Goyne 2017-08-31 10:39:48 -07:00
parent ce749578e1
commit e75496571f

View File

@ -110,7 +110,8 @@ function refreshAccessToken(user, localRealmPath, realmUrl) {
print_error(`Unhandled session token refresh error: could not look up session at path ${localRealmPath}`);
}
}
});
})
.catch((e) => print_error(e));
}
function _authenticate(userConstructor, server, json, callback) {