@mondart/nestjs-common-module 1.1.36 → 1.1.37
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.
|
@@ -23,13 +23,14 @@ let GlobalExceptionFilter = class GlobalExceptionFilter {
|
|
|
23
23
|
const type = host?.getType();
|
|
24
24
|
if (type === 'rpc') {
|
|
25
25
|
try {
|
|
26
|
-
logger.error(
|
|
26
|
+
logger.error(`exceptionName: ${exception?.name}`, JSON.stringify(exception) ??
|
|
27
27
|
exception?.message ??
|
|
28
28
|
'Unknown exception occurred.');
|
|
29
|
-
return (0, rxjs_1.throwError)(
|
|
29
|
+
return (0, rxjs_1.throwError)(exception);
|
|
30
30
|
}
|
|
31
31
|
catch (err) {
|
|
32
|
-
|
|
32
|
+
const internalServerErrorException = new common_1.InternalServerErrorException(enums_1.SharedMessages.INTERNAL_SERVER_ERROR);
|
|
33
|
+
return (0, rxjs_1.throwError)(internalServerErrorException);
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
if (type === 'http') {
|