diff --git a/db/game.go b/db/game.go index 16100e3..e6df174 100644 --- a/db/game.go +++ b/db/game.go @@ -744,7 +744,7 @@ func GetGameInfoByGameItemID(id primitive.ObjectID) (*model.GameInfo, error) { return nil, err } if len(res) == 0 { - return nil, nil + return nil, errors.New("game info not found") } return res[0], nil }