@@ -113,7 +113,7 @@ async function dataHandler(messageSet, topic, partition) {
113113 msgValue . msginfo = `Reconcile failed. \n` +
114114 `DB Operation: ${ payload . OPERATION } \n ` +
115115 `Error code : ${ msgValue . code } \n` +
116- `Error Detail : ${ msgValue . error } `
116+ `Error Detail : ${ msgValue . detail } `
117117 logger . debug ( 'Reconcile failed, sending it to error queue: ' , config . topic_error . NAME ) ;
118118 kafka_error = await pushToKafka ( producer , config . topic_error . NAME , msgValue )
119119 if ( ! kafka_error ) {
@@ -124,7 +124,7 @@ async function dataHandler(messageSet, topic, partition) {
124124 `Status : Reconcile failed. Also unable to post the info in kafka error topic channel due to errors \n` +
125125 `DB Operation: ${ payload . OPERATION } \n ` +
126126 `Error code : ${ msgValue . code } \n` +
127- `Error Detail : ${ msgValue . error } `
127+ `Error Detail : ${ msgValue . detail } `
128128 notify_msg = "consumer_reconcile post fails - unable to post the error in kafka failure topic due to some errors"
129129 await slack . send_msg_to_slack ( notify_msg ) ;
130130 }
@@ -144,7 +144,7 @@ async function dataHandler(messageSet, topic, partition) {
144144 msgValue . msginfo = `Max Retry Reached. \n` +
145145 `DB Operation: ${ payload . OPERATION } \n ` +
146146 `Error code : ${ msgValue . code } \n` +
147- `Error Detail : ${ msgValue . error } `
147+ `Error Detail : ${ msgValue . detail } `
148148 kafka_error = await pushToKafka ( producer , config . topic_error . NAME , msgValue )
149149 if ( ! kafka_error ) {
150150 logger . info ( "Kafka Message posted successfully to the topic : " + config . topic_error . NAME )
@@ -154,7 +154,7 @@ async function dataHandler(messageSet, topic, partition) {
154154 `Status : Max Retry Reached. Also unable to post the info in kafka error topic channel due to errors \n` +
155155 `DB Operation: ${ payload . OPERATION } \n ` +
156156 `Error code : ${ msgValue . code } \n` +
157- `Error Detail : ${ msgValue . error } `
157+ `Error Detail : ${ msgValue . detail } `
158158 await slack . send_msg_to_slack ( notify_msg ) ;
159159 }
160160 } else {
0 commit comments