Skip to content

Commit 9aea519

Browse files
committed
Expand the required version comments
1 parent 78af614 commit 9aea519

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/cider/nrepl.clj

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@
2323
[orchard.java]))
2424

2525
(def min-clojure-verion
26-
"Having an enforced minimmum version can help users and maintainers alike diagnose issues more quickly,
27-
avoiding problematic code paths in our middleware, and clients like cider.el."
26+
"The minimum Clojure version needed by cider-nrepl to work properly.
27+
Having an enforced minimum version can help users and maintainers alike diagnose issues more quickly,
28+
avoiding problematic code paths in our middleware, and in clients like cider.el."
2829
{:major 1
2930
:minor 9})
3031

32+
;; Make sure we're running a supported Clojure version
3133
(when (or (< (-> *clojure-version* :major long)
3234
(-> min-clojure-verion :major long))
3335

@@ -36,7 +38,7 @@
3638
(< (-> *clojure-version* :minor long)
3739
(-> min-clojure-verion :minor long))))
3840
(try
39-
(.println System/err (format "cider-nrepl cannot be run with older Clojure versions (found: %s, minimum: %s). Exiting."
41+
(.println System/err (format "cider-nrepl requires a newer Clojure version (found: %s, minimum required: %s). Exiting."
4042
*clojure-version*
4143
min-clojure-verion))
4244
(finally

0 commit comments

Comments
 (0)