1
1
mirror of https://github.com/Burn-E99/TheArtificer.git synced 2026-01-06 20:37:54 -05:00

log error in artigen

This commit is contained in:
Ean Milligan
2025-05-03 17:01:59 -04:00
parent 7808093bc7
commit d094efb279

View File

@ -137,8 +137,10 @@ export const runCmd = (fullCmd: string, modifiers: RollModifiers): SolvedRoll =>
);
} catch (e) {
// Fill in the return block
const solverError = e as Error;
loggingEnabled && log(LT.ERROR, `Error hit: ${solverError.message} | ${fullCmd}`);
returnMsg.error = true;
[returnMsg.errorCode, returnMsg.errorMsg] = translateError(e as Error);
[returnMsg.errorCode, returnMsg.errorMsg] = translateError(solverError);
}
return returnMsg;