From c5987ac1e233e1093485d38154d8896e4bb6ee44 Mon Sep 17 00:00:00 2001 From: a1xd <68629610+a1xd@users.noreply.github.com> Date: Mon, 5 Oct 2020 23:14:21 -0400 Subject: improve installer + docs improve exception handling add link to vcr redist in install section of guide --- installer/installer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'installer') diff --git a/installer/installer.cpp b/installer/installer.cpp index 03c8881..06f234e 100644 --- a/installer/installer.cpp +++ b/installer/installer.cpp @@ -76,7 +76,10 @@ int main() { std::cout << "Install complete, change will take effect after restart.\n"; } - catch (std::exception e) { + catch (const std::system_error& e) { + std::cerr << "Error: " << e.what() << ' ' << e.code() << '\n'; + } + catch (const std::exception& e) { std::cerr << "Error: " << e.what() << '\n'; } -- cgit v1.2.3