Flatten routed by using functional try-catch blocks
This commit is contained in:
parent
e75be68466
commit
f7a1e2f652
@ -63,9 +63,7 @@ BOOL WINAPI console_ctrl_handler(DWORD ctrl_type)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int main(int argc, const char *argv[])
|
int main(int argc, const char *argv[]) try
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
{
|
||||||
LogPolicy::GetInstance().Unmute();
|
LogPolicy::GetInstance().Unmute();
|
||||||
|
|
||||||
@ -189,6 +187,3 @@ int main(int argc, const char *argv[])
|
|||||||
SimpleLogger().Write(logWARNING) << "exception: " << e.what();
|
SimpleLogger().Write(logWARNING) << "exception: " << e.what();
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user