@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/esm/index.js
CHANGED
|
@@ -20395,19 +20395,18 @@ class NestTypeOrmEntitySeeder extends TypeOrmEntitySeeder {
|
|
|
20395
20395
|
|
|
20396
20396
|
class AppExceptionsFilterBase {
|
|
20397
20397
|
catch(exception, host) {
|
|
20398
|
-
if (exception instanceof HttpException) {
|
|
20399
|
-
return;
|
|
20400
|
-
}
|
|
20401
20398
|
const ctx = host.switchToHttp();
|
|
20402
20399
|
const response = ctx.getResponse();
|
|
20403
20400
|
const request = ctx.getRequest();
|
|
20404
|
-
|
|
20405
|
-
|
|
20406
|
-
|
|
20407
|
-
|
|
20408
|
-
|
|
20409
|
-
|
|
20410
|
-
|
|
20401
|
+
if (!(exception instanceof HttpException)) {
|
|
20402
|
+
this.logError({
|
|
20403
|
+
exception,
|
|
20404
|
+
request,
|
|
20405
|
+
response,
|
|
20406
|
+
}).catch((error) => {
|
|
20407
|
+
Log.getLogger("AllExceptionsFilter").error("Error logging failed", error);
|
|
20408
|
+
});
|
|
20409
|
+
}
|
|
20411
20410
|
const status = this.getErrorStatusCode(exception);
|
|
20412
20411
|
response.status(status).json({
|
|
20413
20412
|
statusCode: status,
|