From 88917488fdbfc0d324832360602a72bee8260ce0 Mon Sep 17 00:00:00 2001 From: reuk Date: Thu, 12 Oct 2023 13:29:43 +0100 Subject: [PATCH] Juceaide: Print descriptive message if a SaveError is thrown --- extras/Build/juceaide/Main.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/extras/Build/juceaide/Main.cpp b/extras/Build/juceaide/Main.cpp index 916c695a83..63f7140a32 100644 --- a/extras/Build/juceaide/Main.cpp +++ b/extras/Build/juceaide/Main.cpp @@ -562,6 +562,13 @@ int main (int argc, char** argv) if (it == commands.cend()) juce::ConsoleApplication::fail ("No matching mode", 1); - return it->second (std::move (argumentList)); + try + { + return it->second (std::move (argumentList)); + } + catch (const juce::build_tools::SaveError& error) + { + juce::ConsoleApplication::fail (error.message); + } }); }