diff options
Diffstat (limited to 'c/main.cpp')
-rw-r--r-- | c/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -69,9 +69,9 @@ void OnTerminate() noexcept TerminateMsg<TCHAR>(TEXT("a Prolog exception"), tsz); else TerminateMsg<char>("a Prolog exception", NULL); - } catch (Win32Error& e) { + } catch (const Win32Error& e) { TerminateMsg<TCHAR>(TEXT("a Windows error"), e.what<TCHAR>()); - } catch (std::exception& e) { + } catch (const std::exception& e) { TerminateMsg<char>("an exception", e.what()); } catch (...) { TerminateMsg<char>("an exception", NULL); |