(db, e, data)
| 8136 | } |
| 8137 | |
| 8138 | function 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: |
no test coverage detected
searching dependent graphs…