1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Juceaide: Print descriptive message if a SaveError is thrown

This commit is contained in:
reuk 2023-10-12 13:29:43 +01:00
parent 1e10b6df60
commit 88917488fd
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

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