Skip to content

Commit

Permalink
print helpful output when not launching a js env
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce Hauman committed Sep 3, 2018
1 parent 306b5d8 commit e3a06f8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/figwheel/repl.cljc
Expand Up @@ -1266,7 +1266,16 @@
(try
(browse/browse-url open-url)
(catch Throwable t
(println "Failed to open browser:" (.getMessage t)))))))))
(println "Failed to open browser:" (.getMessage t))))))
(and (nil? target)
(not (:launch-js repl-env))
(false? open-url))
(println "JavaScript environment will not launch automatically when :open-url is false")
(and (= :nodejs target)
(not (:launch-js repl-env))
(false? (:launch-node repl-env)))
(println "JavaScript environment will not launch automatically when :launch-node is false")
:else nil)))

(defn tear-down-server [{:keys [server]}]
(when-let [svr @server]
Expand Down

0 comments on commit e3a06f8

Please sign in to comment.