MCPcopy Index your code
hub / github.com/angular/angular / errorToString

Function errorToString

packages/core/test/error_handler_spec.ts:22–28  ·  view source on GitHub ↗
(error: any)

Source from the content-addressed store, hash-verified

20}
21
22function errorToString(error: any) {
23 const logger = new MockConsole();
24 const errorHandler = new ErrorHandler();
25 (errorHandler as any)._console = logger as any;
26 errorHandler.handleError(error);
27 return logger.res.map((line) => line.map((x) => `${x}`).join('#')).join('\n');
28}
29
30describe('ErrorHandler', () => {
31 it('should output exception', () => {

Callers 1

Calls 3

handleErrorMethod · 0.95
mapMethod · 0.80
joinMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…