diff --git a/include/mp/proxy-types.h b/include/mp/proxy-types.h index 3a5dd3d8..0c00b825 100644 --- a/include/mp/proxy-types.h +++ b/include/mp/proxy-types.h @@ -13,6 +13,12 @@ #include #include +// KJ exception support is required, or exceptions thrown in serverInvoke below go uncaught +// and crash the process instead of being returned to the client as errors. +#if KJ_NO_EXCEPTIONS +#error "KJ_NO_EXCEPTIONS=1 is set but libmultiprocess requires support for exceptions. Please check build settings. On NetBSD you may also need to set -DKJ_NO_EXCEPTIONS=0 -DKJ_NO_RTTI=0 explicitly (https://github.com/capnproto/capnproto/pull/2756)" +#endif + namespace mp { template