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
| Parameter | Type | Description |
|---|---|---|
| config | unknown | The invalid config object. |
| error | BettererError | The error thrown while instantiating and validating the BettererConfig. |
Returns
Promise<void> | void