MCPcopy
hub / github.com/apache/pouchdb / enrichCallbackError

Function enrichCallbackError

lib/index-browser.js:5885–5895  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

5883 api._meta = null;
5884
5885 function enrichCallbackError(callback) {
5886 return function (error, result) {
5887 if (error && error instanceof Error && !error.reason) {
5888 if (idbGlobalFailureError) {
5889 error.reason = idbGlobalFailureError;
5890 }
5891 }
5892
5893 callback(error, result);
5894 };
5895 }
5896
5897 // called when creating a fresh new database
5898 function createSchema(db) {

Callers 1

initFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…