We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cb8da1 commit e9e1614Copy full SHA for e9e1614
1 file changed
src/main/clojure/cljs/closure.clj
@@ -1753,10 +1753,12 @@
1753
1754
(defn foreign-deps-str [opts sources]
1755
(letfn [(to-js-str [ijs]
1756
- (let [url (or (and (#{:advanced :simple} (:optimizations opts))
1757
- (:url-min ijs))
1758
- (:url ijs))]
1759
- (slurp url)))]
+ (if-let [url (or (and (#{:advanced :simple} (:optimizations opts))
+ (:url-min ijs))
+ (:url ijs))]
+ (slurp url)
1760
+ (throw (IllegalArgumentException.
1761
+ (str "Foreign lib " ijs " does not exist")))))]
1762
(str (string/join "\n" (map to-js-str sources)) "\n")))
1763
1764
(defn add-wrapper [{:keys [output-wrapper] :as opts} js]
0 commit comments