MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / handleError

Function handleError

tests/acceptance/addon-smoke-test-slow.js:126–132  ·  view source on GitHub ↗
(error, commandName)

Source from the content-addressed store, hash-verified

124
125 it('npm pack does not include unnecessary files', async function () {
126 let handleError = function (error, commandName) {
127 if (error.code === 'ENOENT') {
128 console.warn(chalk.yellow(` Your system does not provide ${commandName} -> Skipped this test.`));
129 } else {
130 throw new Error(error);
131 }
132 };
133
134 try {
135 await npmPack();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…