Bläddra i källkod

gcc didn't like us catching the runtime_error

Kolten Pearson 2 år sedan
förälder
incheckning
ae34a6304a
1 ändrade filer med 0 tillägg och 5 borttagningar
  1. 0 5
      c_bindings/pocketpy_c.cpp

+ 0 - 5
c_bindings/pocketpy_c.cpp

@@ -13,11 +13,6 @@ using namespace pkpy;
         << "this probably means pocketpy itself has a bug!\n" \
         << e.what() << "\n"; \
         exit(2); \
-    } catch(std::runtime_error& e) { \
-        std::cerr << "ERROR: a std::runtime_error " \
-        << "this probably means pocketpy itself has a bug!\n" \
-        << e.what() << "\n"; \
-        exit(2); \
     } catch(...) { \
         std::cerr << "ERROR: a unknown exception was thrown from " << __func__ \
         << "\nthis probably means pocketpy itself has a bug!\n"; \