MCPcopy Create free account
hub / github.com/totaljs/framework / prepare_error

Function prepare_error

index.js:19098–19105  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

19096});
19097
19098function prepare_error(e) {
19099 if (!e)
19100 return '';
19101 else if (e instanceof ErrorBuilder)
19102 return e.plain();
19103 else if (DEBUG)
19104 return e.stack ? e.stack : e.toString();
19105}
19106
19107function prepare_filename(name) {
19108 return name[0] === '@' ? (F.isWindows ? U.combine(CONF.directory_temp, name.substring(1)) : F.path.package(name.substring(1))) : U.combine('/', name);

Callers 2

extend_requestFunction · 0.85
extend_responseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected