check env vars

master
Josha von Gizycki 6 years ago
parent c8c831ddf2
commit ad111815ef

@ -176,6 +176,8 @@
match-str match-str
(blog-sites-preview blog-name))) (blog-sites-preview blog-name)))
envs-fn (fn [result [match-str env-name]] envs-fn (fn [result [match-str env-name]]
(when (= nil (System/getenv env-name))
(throw (ex-info (str "env var not found " env-name))))
(string/replace result (string/replace result
match-str match-str
(System/getenv env-name)))] (System/getenv env-name)))]

Loading…
Cancel
Save