diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-20 02:24:40 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-20 02:24:40 +0200 |
commit | 3d56ea09228ac2989eb8b89c8b69909603d61c3e (patch) | |
tree | 2deef821cae98df8033c11e452ca063a0caa583f /c/main.cpp | |
parent | 0e8054175d1ba6898830a2df20ea7f6660880f80 (diff) | |
download | EpisodeBrowser-3d56ea09228ac2989eb8b89c8b69909603d61c3e.tar.gz |
Use template instead of Win32Error::twhat.
Diffstat (limited to 'c/main.cpp')
-rw-r--r-- | c/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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: "; |