Skip to content

Instantly share code, notes, and snippets.

@technicalpickles
Created June 20, 2014 21:39
Show Gist options
  • Save technicalpickles/592c8c9a28dd5c3b24e8 to your computer and use it in GitHub Desktop.
Save technicalpickles/592c8c9a28dd5c3b24e8 to your computer and use it in GitHub Desktop.
Simple hubot error handling
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