Explorar el Código

修改报错信息

yjp hace 2 semanas
padre
commit
6bd04929a6
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      framework/core/infrastructure/message_queue/redis/redis.go

+ 1 - 1
framework/core/infrastructure/message_queue/redis/redis.go

@@ -122,7 +122,7 @@ func (messageQueue *MessageQueue) Subscribe(group string, topic string, handler
 		if !ok {
 			err := errors.New("数据不存在")
 			logger.GetInstance().Error(err)
-			return errors.New("数据不存在")
+			return err
 		}
 
 		event, err := data_protocol.UnmarshalJsonCloudEvent([]byte(data))