diff options
Diffstat (limited to 'FreeFileSync/Source/RealTimeSync/application.cpp')
-rwxr-xr-x | FreeFileSync/Source/RealTimeSync/application.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/FreeFileSync/Source/RealTimeSync/application.cpp b/FreeFileSync/Source/RealTimeSync/application.cpp index 043c91a9..72fbcc37 100755 --- a/FreeFileSync/Source/RealTimeSync/application.cpp +++ b/FreeFileSync/Source/RealTimeSync/application.cpp @@ -124,7 +124,9 @@ int Application::OnRun() catch (const std::bad_alloc& e) //the only kind of exception we don't want crash dumps for { logFatalError(e.what()); //it's not always possible to display a message box, e.g. corrupted stack, however low-level file output works! - wxSafeShowMessage(L"RealTimeSync - " + _("An exception occurred"), e.what()); + + const auto title = copyStringTo<std::wstring>(wxTheApp->GetAppDisplayName()) + SPACED_DASH + _("An exception occurred"); + wxSafeShowMessage(title, e.what()); return FFS_RC_EXCEPTION; } //catch (...) -> let it crash and create mini dump!!! |