fix: redact auth in errors
This commit is contained in:
parent
7e8b3d8f38
commit
4337b2b1d7
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue