aboutsummaryrefslogtreecommitdiff
path: root/c/main.cpp
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-20 02:24:40 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-20 02:24:40 +0200
commit3d56ea09228ac2989eb8b89c8b69909603d61c3e (patch)
tree2deef821cae98df8033c11e452ca063a0caa583f /c/main.cpp
parent0e8054175d1ba6898830a2df20ea7f6660880f80 (diff)
downloadEpisodeBrowser-3d56ea09228ac2989eb8b89c8b69909603d61c3e.tar.gz
Use template instead of Win32Error::twhat.
Diffstat (limited to 'c/main.cpp')
-rw-r--r--c/main.cpp2
1 files changed, 1 insertions, 1 deletions
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<TCHAR> tstr = TEXT("The program was terminated due to a Windows error: ");
- tstr += e.twhat();
+ tstr += e.what<TCHAR>();
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: ";