We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f582f26 commit 58fce56Copy full SHA for 58fce56
src/main/clojure/cljs/cli.clj
@@ -144,6 +144,17 @@ classpath. Classpath-relative paths have prefix of @ or @/")
144
145
(defn- watch-opt
146
[cfg path]
147
+ (when-not (.exists (io/file path))
148
+ (if (or (string/starts-with? path "-")
149
+ (string/blank? path))
150
+ (throw
151
+ (ex-info
152
+ (str "Missing watch path")
153
+ {:cljs.main/error :invalid-arg}))
154
155
156
+ (str "Watch path " path " does not exist")
157
+ {:cljs.main/error :invalid-arg}))))
158
(assoc-in cfg [:options :watch] path))
159
160
(defn- optimize-opt
0 commit comments