* Output an error message, without exiting * * @param {String} mainError message to send
(mainError)
| 224 | * @param {String} mainError message to send |
| 225 | */ |
| 226 | errorMessage(mainError) { |
| 227 | let errStr = "[ERROR] "+mainError; |
| 228 | if(errStr == "[object Object]") { |
| 229 | errStr = JSON.stringify(mainError); |
| 230 | } |
| 231 | console.error( chalk.red(errStr) ); |
| 232 | } |
| 233 | |
| 234 | /** |
| 235 | * argument handling error, |
nothing calls this directly
no outgoing calls
no test coverage detected