Be more forgiving of empty project map.

This commit is contained in:
Phil Hagelberg 2017-12-26 15:04:16 -08:00
parent 186911472f
commit 4df8ca6833

View file

@ -176,7 +176,7 @@
port# (:port server#)
repl-port-file# (apply io/file ~(repl-port-file-vector project))
;; TODO 3.0: remove legacy repl port support.
legacy-repl-port# (if (.exists (io/file ~(:target-path project)))
legacy-repl-port# (if (.exists (io/file ~(:target-path project "")))
(io/file ~(:target-path project) "repl-port"))]
(when ~start-msg?
(println "nREPL server started on port" port# "on host" ~(:host cfg)