Do not throw exception when channel name is "error"

This commit is contained in:
Cheng Zhao 2016-07-24 21:08:25 +09:00
parent 99ec841a8e
commit 751ee53683

View file

@ -1,3 +1,6 @@
const EventEmitter = require('events').EventEmitter
module.exports = new EventEmitter()
// Do not throw exception when channel name is "error".
module.exports.on('error', () => {})