aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 1777d79..2045ef6 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -194,16 +194,7 @@ int APIENTRY wWinMain(
switch (ret)
{
case -1:
- try
- {
- error::raise("DialogBoxW");
- }
- catch (const Error& e)
- {
- error::report(e);
- return 1;
- }
-
+ error::report(error::make("DialogBoxW"));
default:
return static_cast<int>(ret);
}