Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

Commit

Permalink
Return the exception message when invoking command
Browse files Browse the repository at this point in the history
  • Loading branch information
rteabeault committed Dec 19, 2013
1 parent 795c1dd commit b1d7bea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/clojure/jarvis/bot.clj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
(command/private-message? message) (command/private-message message plugin)
:else (command/reply message plugin))
(catch Exception e
(log/error e (plugins/command-name plugin) " threw an exception"))))))
(log/error e (plugins/command-name plugin) "threw an exception")
(.getMessage e))))))

(defn flow-stream [flow plugins]
(listen [flow msg flow-connection]
Expand Down

0 comments on commit b1d7bea

Please sign in to comment.