TP-5555 | hotfix for error

This commit is contained in:
varnit goyal
2025-01-03 19:30:59 +05:30
parent b2cf9cab6b
commit 5b165bfc32

View File

@@ -142,7 +142,11 @@ func (ep *ErrorProcessor) ProcessError(error []byte) {
ep.logger.Error("error in unmarshalling exception", zap.Error(err))
return
}
extraMap := payload.Extra.(map[string]interface{})
extraMap, conversionOk := payload.Extra.(map[string]interface{})
if !conversionOk {
ep.logger.Error("error in unmarshalling exception")
return
}
releaseId, ok := extraMap["release_id"].(string)
if !ok {
ep.logger.Error("Release id is not found")