Skip to content

Commit

Permalink
use JSON.stringify to print Error object
Browse files Browse the repository at this point in the history
  • Loading branch information
shokai committed Jan 11, 2015
1 parent c4b1b91 commit 4d4a0b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slack.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class SlackBot extends Adapter
@client.login()

error: (error) =>
@robot.logger.error "Received error #{error.toString()}"
@robot.logger.error "Received error #{JSON.stringify error}"
@robot.logger.error error.stack
@robot.logger.error "Exiting in 1 second"
setTimeout process.exit.bind(process, 1), 1000
Expand Down

0 comments on commit 4d4a0b4

Please sign in to comment.