| 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, |