MCPcopy Index your code
hub / github.com/angular-ui/ui-router / formatError

Function formatError

test/angular/1.7/angular.js:15545–15556  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

15543 };
15544
15545 function formatError(arg) {
15546 if (isError(arg)) {
15547 if (arg.stack && formatStackTrace) {
15548 arg = (arg.message && arg.stack.indexOf(arg.message) === -1)
15549 ? 'Error: ' + arg.message + '\n' + arg.stack
15550 : arg.stack;
15551 } else if (arg.sourceURL) {
15552 arg = arg.message + '\n' + arg.sourceURL + ':' + arg.line;
15553 }
15554 }
15555 return arg;
15556 }
15557
15558 function consoleLog(type) {
15559 var console = $window.console || {},

Callers 1

consoleLogFunction · 0.70

Calls 1

isErrorFunction · 0.70

Tested by

no test coverage detected