@yolo-croket-dev/core 1.4.47-jun.6 → 1.4.47-jun.8
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.
|
@@ -4,7 +4,6 @@ exports.AmqpHandler = exports.HttpExceptionCustom = void 0;
|
|
|
4
4
|
const common_1 = require("@nestjs/common");
|
|
5
5
|
const rxjs_1 = require("rxjs");
|
|
6
6
|
const msa_logger_1 = require("@yolo-croket-dev/msa-logger");
|
|
7
|
-
const __1 = require("..");
|
|
8
7
|
const _1 = require(".");
|
|
9
8
|
const msaLogger = new msa_logger_1.MsaLogger(msa_logger_1.ServerTypeEnum.SERVICE);
|
|
10
9
|
class HttpExceptionCustom extends common_1.HttpException {
|
|
@@ -46,8 +45,10 @@ async function AmqpHandler(client, messagePattern, payload) {
|
|
|
46
45
|
}
|
|
47
46
|
catch (err) {
|
|
48
47
|
console.error('payload @@@', payload);
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
console.error('err @@@', err);
|
|
49
|
+
if (err === 'There is no matching message handler defined in the remote service.') {
|
|
50
|
+
// throw new BadRequest('NOT_EXISTS_SERVICE', 'There is no matching message handler defined in the remote service');
|
|
51
|
+
throw new Error('test');
|
|
51
52
|
}
|
|
52
53
|
else {
|
|
53
54
|
msaLogger.error('AMQP_HANDLER_ERROR', {
|