MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / error

Method error

test/jest-config.ts:87–99  ·  view source on GitHub ↗
(...message)

Source from the content-addressed store, hash-verified

85 }
86 this['_logError']('log', msg);
87 }
88 error(...message) {
89 debugger;
90
91 let msg = '';
92 try {
93 throw new Error();
94 } catch (e) {
95 msg = `${
96 !message ? '' : message.map((x) => serialize(x)).join(' ')
97 }\n${formatStackTrace(e.stack)}\n`;
98 }
99 this['_logError']('error', msg);
100 }
101 assert(value, ...message) {
102 if (value) return;

Callers

nothing calls this directly

Calls 3

formatStackTraceFunction · 0.85
serializeFunction · 0.70
mapMethod · 0.65

Tested by

no test coverage detected