Tools/ConnectionPatcher: Pause program when an error happens

Similar to what is done in mmaps_generator and vmap4_extractor.
This hopefully reduces the number of problems that Windows users have
when patching fails.
This commit is contained in:
Nayd
2019-09-29 01:33:46 +02:00
committed by Ovahlord
parent 66101f2abc
commit 84e89ce9c8

View File

@@ -216,6 +216,8 @@ int main(int argc, char** argv)
catch (std::exception const& ex)
{
std::cerr << "EX: " << ex.what() << std::endl;
std::cerr << "An error occurred. Press ENTER to continue...";
std::cin.get();
return 1;
}
}