(db, e, data)
| 8141 | } |
| 8142 | |
| 8143 | function emitError(db, e, data) { |
| 8144 | try { |
| 8145 | db.emit('error', e); |
| 8146 | } catch (err) { |
| 8147 | guardedConsole('error', |
| 8148 | 'The user\'s map/reduce function threw an uncaught error.\n' + |
| 8149 | 'You can debug this error by doing:\n' + |
| 8150 | 'myDatabase.on(\'error\', function (err) { debugger; });\n' + |
| 8151 | 'Please double-check your map/reduce function.'); |
| 8152 | guardedConsole('error', e, data); |
| 8153 | } |
| 8154 | } |
| 8155 | |
| 8156 | /** |
| 8157 | * Returns an "abstract" mapreduce object of the form: |
no test coverage detected
searching dependent graphs…