From ad111815efee89a38d8ee5d5c86e075323bf40be Mon Sep 17 00:00:00 2001 From: Josha von Gizycki Date: Tue, 18 Dec 2018 22:15:47 +0100 Subject: [PATCH] check env vars --- src/equilibrium/render.clj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/equilibrium/render.clj b/src/equilibrium/render.clj index 0092458..52782bd 100644 --- a/src/equilibrium/render.clj +++ b/src/equilibrium/render.clj @@ -176,6 +176,8 @@ match-str (blog-sites-preview blog-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 match-str (System/getenv env-name)))]