fix: redact auth in errors

This commit is contained in:
HerozDotExe 2026-06-26 17:24:33 +02:00
parent 7e8b3d8f38
commit 4337b2b1d7

View file

@ -10,6 +10,8 @@ export class ConfigError extends Error {
) {
super(message, options);
logger("error", "Provided config was:");
//@ts-expect-error redact token
config.auth = null
console.log(config);
}
}
@ -24,6 +26,8 @@ export class InstallError extends Error {
) {
super(`[${step}] ${message}`, options);
logger("error", "Provided config was:");
//@ts-expect-error redact token
config.auth = null
console.log(config);
console.log('Original error is:')
console.error(options?.cause)