MCPcopy Index your code
hub / github.com/nodejs/node / onError

Function onError

tools/lint-sh.mjs:169–173  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

167 const stats = statSync(entryPoint, { throwIfNoEntry: false });
168
169 const onError = (e) => {
170 console.log(USAGE_STR);
171 console.error(e);
172 process.exitCode = 1;
173 };
174 if (stats?.isDirectory()) {
175 SPAWN_OPTIONS.cwd = entryPoint;
176 checkFiles(...findScriptFilesRecursively(entryPoint)).catch(onError);

Callers 1

lint-sh.mjsFile · 0.70

Calls 2

logMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…