MCPcopy Create free account
hub / github.com/PicoCreator/smol-dev-js / errorMessage

Method errorMessage

src/cli/OutputHandler.js:226–232  ·  view source on GitHub ↗

* Output an error message, without exiting * * @param {String} mainError message to send

(mainError)

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected