From f571dd7b343711799bc345251294ee23b27bf89f Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nwpope@utu.fi>
Date: Wed, 29 Jan 2020 12:51:32 +0200
Subject: [PATCH] Fix for bad ftl exception throw

---
 components/common/cpp/include/ftl/configurable.hpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/components/common/cpp/include/ftl/configurable.hpp b/components/common/cpp/include/ftl/configurable.hpp
index 75f3cdc82..03a6e8367 100644
--- a/components/common/cpp/include/ftl/configurable.hpp
+++ b/components/common/cpp/include/ftl/configurable.hpp
@@ -150,7 +150,8 @@ std::optional<T> ftl::Configurable::get(const std::string &name) {
 		try {
 			return r.get<T>();
 		} catch (...) {
-			throw FTL_Error("Missing: " << (*config_)["$id"].get<std::string>()+"/"+name);
+			//throw FTL_Error("Missing: " << (*config_)["$id"].get<std::string>()+"/"+name);
+			return {};
 		}
 	} else {
 		return {};
-- 
GitLab