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); + } }); }