Skip to content

Commit

Permalink
Add encore version check
Browse files Browse the repository at this point in the history
  • Loading branch information
ptaoussanis committed Feb 28, 2015
1 parent 8b267d7 commit e151aec
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/taoensso/tower.cljx
Expand Up @@ -14,6 +14,19 @@
#+cljs (:require [clojure.string :as str]
[taoensso.encore :as encore]))

;;;; Encore version check

#+clj
(let [min-encore-version 1.21] ; Let's get folks on newer versions here
(if-let [assert! (ns-resolve 'taoensso.encore 'assert-min-encore-version)]
(assert! min-encore-version)
(throw
(ex-info
(format
"Insufficient com.taoensso/encore version (< %s). You may have a Leiningen dependency conflict (see http://goo.gl/qBbLvC for solution)."
min-encore-version)
{:min-version min-encore-version}))))

;;;; Locales
;;; We use the following terms:
;; 'Locale' - Valid JVM Locale object.
Expand Down

0 comments on commit e151aec

Please sign in to comment.