Skip to content

Commit

Permalink
Upgrade to latest Clojure (1.10.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
trptcolin committed Dec 31, 2018
1 parent 872ed6e commit 2ef0699
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject koan-engine "0.2.4"
(defproject koan-engine "0.2.5"
:description "Koan Engine for Clojure projects."
:dependencies [[org.clojure/clojure "1.4.0"]
:dependencies [[org.clojure/clojure "1.10.0"]
[fresh "1.0.2"]])
4 changes: 4 additions & 0 deletions src/koan_engine/koans.clj
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
(flush)
(try (load-file file-path)
true
(catch clojure.lang.Compiler$CompilerException e
(let [cause (.getCause e)]
(report-error file-path (:line (ex-data cause)) cause))
false)
(catch clojure.lang.ExceptionInfo ei
(report-error file-path (:line (ex-data ei)) ei)
false)
Expand Down
2 changes: 1 addition & 1 deletion src/koan_engine/util.clj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

(defmacro fancy-assert
"Assertion with fancy error messaging."
([x] (fancy-assert x ""))
([x] `(fancy-assert ~x ""))
([x message]
`(try
(safe-assert (= true ~x) ~message)
Expand Down

0 comments on commit 2ef0699

Please sign in to comment.