Skip to content

Commit

Permalink
fix: non-constant format string in call to ...
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Su <derek.su@suse.com>
  • Loading branch information
derekbit committed Sep 7, 2024
1 parent 409e01a commit 5cdb34d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/rpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ func (s *ShareManagerServer) Mount(ctx context.Context, req *emptypb.Empty) (res
isMountPoint, err := mounter.IsMountPoint(mountPath)
if err != nil {
err = errors.Wrapf(err, "failed to check mount point %v", mountPath)
return &emptypb.Empty{}, grpcstatus.Errorf(grpccodes.Internal, err.Error())
return &emptypb.Empty{}, grpcstatus.Errorf(grpccodes.Internal, "%v", err)
}
if !isMountPoint {
log.Info("Mounting volume")
Expand Down

0 comments on commit 5cdb34d

Please sign in to comment.