Skip to content

Commit

Permalink
Fix robot.emit
Browse files Browse the repository at this point in the history
  • Loading branch information
lgaticaq committed Mar 20, 2016
1 parent 3f7c836 commit 7e75b17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = (robot) ->
.get() (err, response, body) ->
if err
res.reply "ocurrio un error al consultar el email"
robot.emit "error", err, res
robot.emit "error", err, response
return
data = JSON.parse body
if data.status is "badsintax"
Expand Down

0 comments on commit 7e75b17

Please sign in to comment.