Skip to content

Commit

Permalink
Merge pull request #322 from pohly/fix-type-error
Browse files Browse the repository at this point in the history
CSI mock driver: fix faulty error message
  • Loading branch information
k8s-ci-robot authored Feb 23, 2021
2 parents 30c44b9 + 9e6af2d commit 1085a56
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions mock/service/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ package service

import (
"fmt"
"math"
"path"
"reflect"
"strconv"
Expand Down Expand Up @@ -411,8 +410,8 @@ func (s *service) ListVolumes(
if err != nil {
return nil, status.Errorf(
codes.Aborted,
"startingToken=%d !< int32=%d",
startingToken, math.MaxUint32)
"startingToken=%s: %v",
v, err)
}
startingToken = int32(i)
}
Expand Down Expand Up @@ -800,8 +799,8 @@ func getAllSnapshots(s *service, req *csi.ListSnapshotsRequest) (*csi.ListSnapsh
if err != nil {
return nil, status.Errorf(
codes.Aborted,
"startingToken=%d !< int32=%d",
startingToken, math.MaxUint32)
"startingToken=%s: %v",
v, err)
}
startingToken = int32(i)
}
Expand Down

0 comments on commit 1085a56

Please sign in to comment.