From d6a08f432892bde17766d08647c86a69c0f2450d Mon Sep 17 00:00:00 2001 From: Colin Ward Date: Sat, 9 Dec 2023 08:24:21 +0900 Subject: [PATCH] Change exception that is caught The wrong exception type was being caught in the main client, meaning that if an invalid server was detected, the C++ runtime would crash due to an unhandled exception. --- RADRunner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RADRunner.cpp b/RADRunner.cpp index 1287f60..8d4c663 100644 --- a/RADRunner.cpp +++ b/RADRunner.cpp @@ -302,7 +302,7 @@ static TResult StartClient(unsigned short a_port) } } } - catch (RSocket::Error &a_exception) + catch (std::runtime_error &a_exception) { Utils::Error(a_exception.what()); }