Browse Source

juceaide: Improve error logging

develop
Tom Poole 2 months ago
parent
commit
780493c47b
2 changed files with 9 additions and 1 deletions
  1. +8
    -0
      extras/Build/juceaide/Main.cpp
  2. +1
    -1
      modules/juce_core/misc/juce_ConsoleApplication.cpp

+ 8
- 0
extras/Build/juceaide/Main.cpp View File

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

+ 1
- 1
modules/juce_core/misc/juce_ConsoleApplication.cpp View File

@@ -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…
Cancel
Save