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:
parent
1e10b6df60
commit
88917488fd
1 changed files with 8 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue