MCPcopy Index your code
hub / github.com/apache/echarts / errToStr

Function errToStr

test/runTest/runtime/main.js:123–134  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

121}
122
123function errToStr(err) {
124 if (typeof err === 'string') {
125 return err;
126 }
127 if (err && err.message != null) {
128 return err.message + (err.stack ? ' ' + err.stack : '');
129 }
130 if (err && err.toString) {
131 return err.toString();
132 }
133 return '[error] ' + err;
134}
135
136
137window.addEventListener('DOMContentLoaded', () => {

Callers 1

main.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…