MCPcopy Create free account
hub / github.com/bigcommerce/stencil-cli / printCliResultErrorAndExit

Function printCliResultErrorAndExit

lib/cliCommon.js:61–67  ·  view source on GitHub ↗

* @param {Error} error * @returns {void}

(error)

Source from the content-addressed store, hash-verified

59 * @returns {void}
60 */
61function printCliResultErrorAndExit(error) {
62 console.log(error);
63 printCliResultError(error);
64 // Exit with error code so automated systems recognize it as a failure
65 // eslint-disable-next-line no-process-exit
66 process.exit(1);
67}
68function checkNodeVersion() {
69 const satisfies = semver.satisfies(process.versions.node, PACKAGE_INFO.engines.node);
70 if (!satisfies) {

Callers 4

runFunction · 0.90
runFunction · 0.90
stencil-pull.jsFile · 0.90
stencil-push.jsFile · 0.90

Calls 2

printCliResultErrorFunction · 0.85
logMethod · 0.80

Tested by

no test coverage detected