MCPcopy Create free account
hub / github.com/decaporg/decap-cms / errorHandler

Method errorHandler

packages/decap-cms-backend-github/src/API.ts:521–530  ·  view source on GitHub ↗
(err: Error)

Source from the content-addressed store, hash-verified

519 };
520
521 function errorHandler(err: Error) {
522 if (err.message === 'Not Found') {
523 console.log(
524 '%c %s does not have metadata',
525 'line-height: 30px;text-align: center;font-weight: bold',
526 key,
527 );
528 }
529 throw err;
530 }
531
532 if (!this.useOpenAuthoring) {
533 const result = await this.request(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected