diff --git a/src/utils/errors.ts b/src/utils/errors.ts index f464cc8..0426ba6 100644 --- a/src/utils/errors.ts +++ b/src/utils/errors.ts @@ -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)