@punks/backend-entity-manager 0.0.70 → 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 -10
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +9 -10
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -20403,19 +20403,18 @@ class NestTypeOrmEntitySeeder extends TypeOrmEntitySeeder {
|
|
|
20403
20403
|
|
|
20404
20404
|
class AppExceptionsFilterBase {
|
|
20405
20405
|
catch(exception, host) {
|
|
20406
|
-
if (exception instanceof common.HttpException) {
|
|
20407
|
-
return;
|
|
20408
|
-
}
|
|
20409
20406
|
const ctx = host.switchToHttp();
|
|
20410
20407
|
const response = ctx.getResponse();
|
|
20411
20408
|
const request = ctx.getRequest();
|
|
20412
|
-
|
|
20413
|
-
|
|
20414
|
-
|
|
20415
|
-
|
|
20416
|
-
|
|
20417
|
-
|
|
20418
|
-
|
|
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
|
+
}
|
|
20419
20418
|
const status = this.getErrorStatusCode(exception);
|
|
20420
20419
|
response.status(status).json({
|
|
20421
20420
|
statusCode: status,
|