MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / error

Method error

src/shared/logging.ts:37–39  ·  view source on GitHub ↗
(errorOrMessage: any, category?: LogCategory)

Source from the content-addressed store, hash-verified

35 this.log(errorString(errorOrMessage), LogSeverity.Warn, category);
36 }
37 public error(errorOrMessage: any, category?: LogCategory): void {
38 this.log(errorString(errorOrMessage), LogSeverity.Error, category);
39 }
40
41 public dispose(): void {
42 this.onLogEmitter.removeAllListeners();

Callers

nothing calls this directly

Calls 2

logMethod · 0.95
errorStringFunction · 0.90

Tested by

no test coverage detected