diff --git a/src/workerd/jsg/struct.h b/src/workerd/jsg/struct.h index 31482bb470b..fc6c4a56191 100644 --- a/src/workerd/jsg/struct.h +++ b/src/workerd/jsg/struct.h @@ -103,8 +103,9 @@ class StructWrapper, kj::_::Indexes()) && ...)) { return T{}; } - jsg::throwTypeError(isolate, "Cannot initialize a dictionary with required members from an " - "undefined or null value."); + jsg::throwTypeError(isolate, kj::str("Cannot initialize ", typeid(T).name(), + " with required members from an " + "undefined or null value.")); } if (!handle->IsObject()) return kj::none;