Permalink
Browse files

Return when an error is encountered

  • Loading branch information...
1 parent c15ae1f commit 2a9f7dde8f524e88291ac9ad59de80679243d274 @carmstrong carmstrong committed Dec 15, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/scripts/trello.coffee
@@ -37,4 +37,5 @@ createCard = (msg, cardName) ->
t.post "/1/cards", {name: cardName, idList: process.env.HUBOT_TRELLO_LIST}, (err, data) ->
if err
msg.send "There was an error creating the card"
+ return
msg.send data.url

0 comments on commit 2a9f7dd

Please sign in to comment.