From f550ddd23f1ce8b098b76b2c2adb474e22351155 Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Sun, 18 Aug 2024 12:41:16 +0200 Subject: [PATCH] Better error message when failed to read editor setting --- util/limbo_compat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/limbo_compat.cpp b/util/limbo_compat.cpp index 7651a32..3be7317 100644 --- a/util/limbo_compat.cpp +++ b/util/limbo_compat.cpp @@ -39,7 +39,7 @@ using namespace godot; Variant _EDITOR_GET(const String &p_setting) { Ref es = EditorInterface::get_singleton()->get_editor_settings(); - ERR_FAIL_COND_V(es.is_null() || !es->has_setting(p_setting), Variant()); + ERR_FAIL_COND_V_MSG(es.is_null() || !es->has_setting(p_setting), Variant(), "Couldn't get editor setting: " + p_setting); return es->get(p_setting); }