MCPcopy Create free account
hub / github.com/code-pushup/cli / error

Method error

packages/utils/src/lib/logger.ts:88–90  ·  view source on GitHub ↗

* Logs an error to the console (red). * * Automatically adapts to logger state if called within task, group, etc. * * @example * logger.error('Config file is invalid'); * * @param message Error text * @param options Additional options

(message: string, options?: LogOptions)

Source from the content-addressed store, hash-verified

86 * @param options Additional options
87 */
88 error(message: string, options?: LogOptions): void {
89 this.#log(message, 'red', options);
90 }
91
92 /**
93 * Logs a warning to the console (yellow).

Callers 12

LoggerClass · 0.95
multipleFormatsFunction · 0.80
findConfigFromEnvFunction · 0.80
persistEslintReportFunction · 0.80
logger-demo.tsFile · 0.80
logger.int.test.tsFile · 0.80
loadPortalClientFunction · 0.80
runCliExecutorFunction · 0.80
logErrorBeforeThrowFunction · 0.80
createAuthServerFunction · 0.80
ensureDirectoryExistsFunction · 0.80
materializeTreeFunction · 0.80

Calls 1

#logMethod · 0.95

Tested by

no test coverage detected