MCPcopy
hub / github.com/trentm/node-bunyan / getFullErrorStack

Function getFullErrorStack

lib/bunyan.js:1127–1137  ·  view source on GitHub ↗
(ex)

Source from the content-addressed store, hash-verified

1125 * https://github.com/davepacheco/node-extsprintf/blob/master/lib/extsprintf.js
1126 */
1127function getFullErrorStack(ex)
1128{
1129 var ret = ex.stack || ex.toString();
1130 if (ex.cause && typeof (ex.cause) === 'function') {
1131 var cex = ex.cause();
1132 if (cex) {
1133 ret += '\nCaused by: ' + getFullErrorStack(cex);
1134 }
1135 }
1136 return (ret);
1137}
1138
1139// Serialize an Error object
1140// (Core error properties are enumerable in node 0.4, not in 0.6).

Callers 1

bunyan.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected