commit 9af321178aa8738c216db282c630dbc01cde49cc
parent 797d1706892947a4767e96438de5b400d680c229
Author: dsp56300 <dsp56300@users.noreply.github.com>
Date: Tue, 17 Dec 2024 00:14:12 +0100
give more information about a json error if json parsing fails
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/juceUiLib/editor.cpp b/source/juceUiLib/editor.cpp
@@ -19,7 +19,7 @@ namespace genericUI
const auto error = juce::JSON::parse(juce::String(std::string(jsonData, jsonSize)), json);
if (error.failed())
- throw std::runtime_error("Failed to load json");
+ throw std::runtime_error("Failed to load json, " + error.getErrorMessage().toStdString());
m_jsonFilename = _jsonFilename;