Created
June 20, 2014 21:39
-
-
Save technicalpickles/592c8c9a28dd5c3b24e8 to your computer and use it in GitHub Desktop.
Simple hubot error handling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = (robot) -> | |
robot.error (err, msg) -> | |
robot.logger.error "#{err}\n#{err.stack}" | |
if msg? | |
msg.reply "#{err}\n#{err.stack}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment