From 704c856387a156421f25313628d2bb8656bad260 Mon Sep 17 00:00:00 2001 From: John Wiseman Date: Tue, 21 Jan 2020 20:33:45 -0800 Subject: [PATCH] Fix for config validation. --- src/main/lemondronor/circlebot.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/lemondronor/circlebot.cljs b/src/main/lemondronor/circlebot.cljs index 54bdca1..ffdd2ab 100644 --- a/src/main/lemondronor/circlebot.cljs +++ b/src/main/lemondronor/circlebot.cljs @@ -500,7 +500,7 @@ :access-token :access-token-secret])] (set/difference (set required) (set present)))) missing (concat missing1 missing2)] - (when missing + (when (seq missing) (throw (js/Error. (str "Missing configuration values: " (string/join ", " (sort-by str missing))))))))