fix: improve debugging for kai reauth

This commit is contained in:
zkldi
2023-02-05 18:57:42 +00:00
parent 4c8e674966
commit 37bee744d9
@@ -57,7 +57,9 @@ export function CreateKaiReauthFunction(
/* istanbul ignore next */
if (res.status !== 200) {
logger.error(`Unexpected ${res.status} error while fetching reauth?`, { res });
const text = await res.text();
logger.error(`Unexpected ${res.status} error while fetching reauth?`, { res, text });
throw new ScoreImportFatalError(
500,
"An error has occured while attempting reauthentication."