mirror of
https://github.com/nestjs/nest.git
synced 2026-10-28 17:56:01 +08:00
BaseWsExceptionFilter sent the error held by a WsException as it is whenever it was an object. For an Error, as in new WsException(err), the client then got the enumerable properties of the Error (such as the request config of an HTTP client error) or its toJSON() output. An Error held by a WsException is now handled as an unknown error: it is logged, and the client gets the "Internal server error" payload, with its cause. Plain objects and strings are sent as before.