fix: make that config is actually shown when errors occur

This commit is contained in:
HerozDotExe 2026-03-25 22:18:21 +01:00
parent 7e4a9ad055
commit cc8f837be0

View file

@ -5,7 +5,7 @@ export class ConfigError extends Error {
constructor(message: string, config: Partial<BaseConfig>, logger: logger, options?: ErrorOptions) {
super(message, options)
logger("error", "Provided config was:")
logger("error", config)
console.log("error", config)
}
}
@ -13,7 +13,7 @@ export class InstallError extends Error {
constructor(message: string, step: string, config: Config, logger: logger, options?: ErrorOptions) {
super(`[${step}] ${message}`, options)
logger("error", "Provided config was:")
logger("error", config)
console.log(config)
}
}