mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
juceaide: Improve error logging
This commit is contained in:
parent
627d01b9a2
commit
780493c47b
2 changed files with 9 additions and 1 deletions
|
|
@ -570,5 +570,13 @@ int main (int argc, char** argv)
|
|||
{
|
||||
juce::ConsoleApplication::fail (error.message);
|
||||
}
|
||||
catch (const std::exception& ex)
|
||||
{
|
||||
juce::ConsoleApplication::fail (ex.what());
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
juce::ConsoleApplication::fail ("Unhandled exception");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -308,7 +308,7 @@ int ConsoleApplication::invokeCatchingFailures (std::function<int()>&& f)
|
|||
}
|
||||
catch (const ConsoleAppFailureCode& error)
|
||||
{
|
||||
std::cerr << error.errorMessage << std::endl;
|
||||
std::cerr << error.errorMessage << std::endl << std::flush;
|
||||
returnCode = error.returnCode;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue