From 67a895d1e75bf5b718b6c527a413cb36f679d1f0 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sun, 15 May 2022 00:50:53 -0600 Subject: [PATCH] testqbsp: fix use of msvc-ism --- qbsp/test_qbsp.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qbsp/test_qbsp.cc b/qbsp/test_qbsp.cc index 2cb928c5..13474158 100644 --- a/qbsp/test_qbsp.cc +++ b/qbsp/test_qbsp.cc @@ -15,6 +15,7 @@ #include #include #include +#include #include using namespace testing; @@ -70,12 +71,12 @@ static mbsp_t LoadTestmapRef(const std::filesystem::path &name) struct subprocess_s subprocess; int result = subprocess_create(command_line, 0, &subprocess); if (0 != result) { - throw std::exception("error launching process"); + throw std::runtime_error("error launching process"); } int retcode; if (0 != subprocess_join(&subprocess, &retcode)) { - throw std::exception("error joining"); + throw std::runtime_error("error joining"); } // re-open the .bsp and return it