Преглед изворни кода

gcc didn't like us catching the runtime_error

Kolten Pearson пре 3 година
родитељ
комит
ae34a6304a
1 измењених фајлова са 0 додато и 5 уклоњено
  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"; \