Skip to content

Commit

Permalink
Fix to warn on Clojure 1.7 or earlier #39
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidz committed Nov 19, 2020
1 parent 43d1922 commit f710545
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/antq/core.clj
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
;; Warn on Clojure 1.7.0 or earlier
(let [{:keys [major minor]} *clojure-version*]
(when-not (or (and (= major 1) (>= minor 8))
(> major 1))
(.println *err* "antq requires Clojure 1.8.0 or later.")
(System/exit 1)))

(ns antq.core
(:gen-class)
(:require
Expand Down

0 comments on commit f710545

Please sign in to comment.