From 3d56ea09228ac2989eb8b89c8b69909603d61c3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 20 Jul 2022 02:24:40 +0200 Subject: Use template instead of Win32Error::twhat. --- c/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c/main.cpp') diff --git a/c/main.cpp b/c/main.cpp index a72de53..541f524 100644 --- a/c/main.cpp +++ b/c/main.cpp @@ -60,7 +60,7 @@ void OnTerminate() noexcept "Fatal Error", MB_ICONERROR); } catch (Win32Error& e) { std::basic_string tstr = TEXT("The program was terminated due to a Windows error: "); - tstr += e.twhat(); + tstr += e.what(); MessageBox(NULL, tstr.c_str(), TEXT("Fatal Error"), MB_ICONERROR); } catch (std::exception& e) { std::string str = "The program was terminated due to an exception: "; -- cgit v1.2.3