add some cheks and error reporting, enable catch SEH in windows

This commit is contained in:
Ondrej Novak 2025-03-12 18:59:47 +01:00
parent 8faba63219
commit c9d0e86344
8 changed files with 88 additions and 34 deletions

View file

@ -85,6 +85,10 @@ int main(int argc, char **argv) {
cfg.show_error(e.what());
return 1;
}
catch (...) {
cfg.show_error("Uknown error or crash");
return 1;
}
return 0;