Skip to content

Commit

Permalink
added a bit of error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
NioTeX committed Feb 21, 2016
1 parent 1203978 commit 010edbd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rocketchat.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ class RocketChatBotAdapter extends Adapter
envelope.room = chan.rid
@send envelope, strings...
)
.catch((err) =>
@robot.logger.error "Unable to get DirectMessage Room ID: #{JSON.stringify(err)} Reason: #{err.reason}"
)

reply: (envelope, strings...) =>
@robot.logger.info "reply"
Expand Down

0 comments on commit 010edbd

Please sign in to comment.