MCPcopy Index your code
hub / github.com/prettydiff/prettydiff / error

Function error

services.ts:2152–2168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2150 }
2151 },
2152 error = function node_apps_errout_error():void {
2153 const stack:string = new Error().stack.replace("Error", `${text.cyan}Stack trace${text.none + node.os.EOL}-----------`);
2154 console.log("");
2155 console.log(stack);
2156 console.log("");
2157 console.log(`${text.angry}Error Message${text.none}`);
2158 console.log("------------");
2159 if (errtext[0] === "" && errtext.length < 2) {
2160 console.log(`${text.yellow}No error message supplied${text.none}`);
2161 } else {
2162 errtext.forEach(function node_apps_errout_each(value:string):void {
2163 console.log(value);
2164 });
2165 }
2166 console.log("");
2167 bell();
2168 },
2169 debug = function node_apps_errout_debug():void {
2170 const stack:string = new Error().stack,
2171 source:string = options.source,

Callers 1

services.tsFile · 0.85

Calls 1

bellFunction · 0.85

Tested by

no test coverage detected