@punks/backend-entity-manager 0.0.69 → 0.0.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +9 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +10 -8
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -20406,13 +20406,15 @@ class AppExceptionsFilterBase {
|
|
|
20406
20406
|
const ctx = host.switchToHttp();
|
|
20407
20407
|
const response = ctx.getResponse();
|
|
20408
20408
|
const request = ctx.getRequest();
|
|
20409
|
-
|
|
20410
|
-
|
|
20411
|
-
|
|
20412
|
-
|
|
20413
|
-
|
|
20414
|
-
|
|
20415
|
-
|
|
20409
|
+
if (!(exception instanceof common.HttpException)) {
|
|
20410
|
+
this.logError({
|
|
20411
|
+
exception,
|
|
20412
|
+
request,
|
|
20413
|
+
response,
|
|
20414
|
+
}).catch((error) => {
|
|
20415
|
+
backendCore.Log.getLogger("AllExceptionsFilter").error("Error logging failed", error);
|
|
20416
|
+
});
|
|
20417
|
+
}
|
|
20416
20418
|
const status = this.getErrorStatusCode(exception);
|
|
20417
20419
|
response.status(status).json({
|
|
20418
20420
|
statusCode: status,
|