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 9e4313c416
commit 6d5fec23e2
1 changed files with 12 additions and 11 deletions

View File

@ -111,7 +111,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));
}
/**