MCPcopy Create free account
hub / github.com/SchemaStore/schemastore / ignoreOnlyENOENT

Function ignoreOnlyENOENT

cli.js:309–319  ·  view source on GitHub ↗
(/** @type {unknown} */ err)

Source from the content-addressed store, hash-verified

307 }
308
309 function ignoreOnlyENOENT(/** @type {unknown} */ err) {
310 if (
311 err instanceof Error &&
312 /** @type {NodeJS.ErrnoException} */ (err).code === 'ENOENT'
313 ) {
314 return []
315 } else {
316 spinner.stop()
317 throw err
318 }
319 }
320}
321
322async function toFile(/** @type {string} */ schemaPath) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected