Browse files

Give more information about math exceptions

  • Loading branch information...
1 parent a243663 commit c146fa7dc237c86808edb591b421bc6586f59ea4 @palfrey committed Jul 5, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/clostridium/core.clj
View
6 src/clostridium/core.clj
@@ -72,6 +72,12 @@
(try
(addToStack (:b two) (op (:item two) (:item one)))
(catch ArithmeticException e (addToStack (:b two) 0))
+ (catch Exception e
+ (do
+ (println "math exception" op (:item two) (:item one))
+ (throw e)
+ )
+ )
)
)
)

0 comments on commit c146fa7

Please sign in to comment.