Skip to content

Commit

Permalink
Merge pull request #146 from c3y1huang/c3y1/fix/NodePublishVolume-doe…
Browse files Browse the repository at this point in the history
…s-not-return-err

Return error when NodePublishVolume mount fails
  • Loading branch information
k8s-ci-robot committed Feb 13, 2020
2 parents 3acaee0 + 4b49fd5 commit 8963fb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/hostpath/nodeserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ func (ns *nodeServer) NodePublishVolume(ctx context.Context, req *csi.NodePublis
errList.WriteString(fmt.Sprintf(" :%s", rmErr.Error()))
}
}
return nil, status.Error(codes.Internal, fmt.Sprintf("failed to mount device: %s at %s: %s", path, targetPath, errList.String()))
}
}

Expand Down

0 comments on commit 8963fb3

Please sign in to comment.