diff --git a/service/ErrorProcessor.go b/service/ErrorProcessor.go index 64f6403..5972d16 100644 --- a/service/ErrorProcessor.go +++ b/service/ErrorProcessor.go @@ -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")