update README and demo.js

This commit is contained in:
Mahdi Dibaiee
2015-06-29 05:31:41 +04:30
parent 714ffa9458
commit 4ac725ea58
4 changed files with 8 additions and 6 deletions

View File

@ -47,7 +47,9 @@ function fetch(path, data) {
req.write(post);
}
req.end();
})['catch'](console.error);
})['catch'](function (err) {
console.error('Error sending request', err);
});
}
module.exports = exports['default'];

View File

@ -148,7 +148,7 @@ var Message = (function (_Base) {
bot.removeListener('update', listener);
}
});
})['catch'](console.error);
});
}
}]);