aboutsummaryrefslogtreecommitdiff
path: root/c/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/main.cpp')
-rw-r--r--c/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/main.cpp b/c/main.cpp
index 7937b50..6865e4c 100644
--- a/c/main.cpp
+++ b/c/main.cpp
@@ -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);