Browse Source

修改报错信息

yjp 3 days ago
parent
commit
6bd04929a6
1 changed files with 1 additions and 1 deletions
  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))