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

Function formatError

test/angular/1.6/angular.js:14936–14947  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

14934 };
14935
14936 function formatError(arg) {
14937 if (isError(arg)) {
14938 if (arg.stack && formatStackTrace) {
14939 arg = (arg.message && arg.stack.indexOf(arg.message) === -1)
14940 ? 'Error: ' + arg.message + '\n' + arg.stack
14941 : arg.stack;
14942 } else if (arg.sourceURL) {
14943 arg = arg.message + '\n' + arg.sourceURL + ':' + arg.line;
14944 }
14945 }
14946 return arg;
14947 }
14948
14949 function consoleLog(type) {
14950 var console = $window.console || {},

Callers 1

consoleLogFunction · 0.70

Calls 1

isErrorFunction · 0.70

Tested by

no test coverage detected