mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-23 21:10:19 +00:00
gcc didn't like us catching the runtime_error
This commit is contained in:
parent
e2bf81d7f2
commit
ae34a6304a
@ -13,11 +13,6 @@ using namespace pkpy;
|
|||||||
<< "this probably means pocketpy itself has a bug!\n" \
|
<< "this probably means pocketpy itself has a bug!\n" \
|
||||||
<< e.what() << "\n"; \
|
<< e.what() << "\n"; \
|
||||||
exit(2); \
|
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(...) { \
|
} catch(...) { \
|
||||||
std::cerr << "ERROR: a unknown exception was thrown from " << __func__ \
|
std::cerr << "ERROR: a unknown exception was thrown from " << __func__ \
|
||||||
<< "\nthis probably means pocketpy itself has a bug!\n"; \
|
<< "\nthis probably means pocketpy itself has a bug!\n"; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user