Skip to main content

BettererReporter.configError()

API > @betterer/betterer > BettererReporter > configError

The configError() hook is called when there is an error while instantiating and validating the BettererConfig.

Signature

configError?(config: unknown, error: BettererError): Promise<void> | void;

Parameters

ParameterTypeDescription
configunknownThe invalid config object.
errorBettererErrorThe error thrown while instantiating and validating the BettererConfig.

Returns

Promise<void> | void