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

Function emitError

lib/index.es.js:8138–8149  ·  view source on GitHub ↗
(db, e, data)

Source from the content-addressed store, hash-verified

8136}
8137
8138function emitError(db, e, data) {
8139 try {
8140 db.emit('error', e);
8141 } catch (err) {
8142 guardedConsole('error',
8143 'The user\'s map/reduce function threw an uncaught error.\n' +
8144 'You can debug this error by doing:\n' +
8145 'myDatabase.on(\'error\', function (err) { debugger; });\n' +
8146 'Please double-check your map/reduce function.');
8147 guardedConsole('error', e, data);
8148 }
8149}
8150
8151/**
8152 * Returns an "abstract" mapreduce object of the form:

Callers 2

tryMapFunction · 0.70
tryReduceFunction · 0.70

Calls 1

guardedConsoleFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…