summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-09-08 13:18:20 +0200
committerGitHub <noreply@github.com>2021-09-08 13:18:20 +0200
commit180a3c42d254ada21366a5ca511f234a9b2bbcd5 (patch)
treeb327cbdeeec46383681d08f18b90167d85908ba4
parentcd43cf8d58a7197acd2885c794c04d228863fe83 (diff)
parentaa412ccc45e09511b2ed769eaa0d7103598a8371 (diff)
downloadpodman-180a3c42d254ada21366a5ca511f234a9b2bbcd5.tar.gz
podman-180a3c42d254ada21366a5ca511f234a9b2bbcd5.tar.bz2
podman-180a3c42d254ada21366a5ca511f234a9b2bbcd5.zip
Merge pull request #11477 from raoulbhatia/fix-testvol-error
test/testvol/main.go: Fix missing arguments to Errorf()
-rw-r--r--test/testvol/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testvol/main.go b/test/testvol/main.go
index 14f253aa7..721f47bcd 100644
--- a/test/testvol/main.go
+++ b/test/testvol/main.go
@@ -224,13 +224,13 @@ func (d *DirDriver) Remove(req *volume.RemoveRequest) error {
vol, exists := d.volumes[req.Name]
if !exists {
logrus.Debugf("Did not find volume %s", req.Name)
- return errors.Errorf("no volume with name %s found")
+ return errors.Errorf("no volume with name %s found", req.Name)
}
logrus.Debugf("Found volume %s", req.Name)
if len(vol.mounts) > 0 {
logrus.Debugf("Cannot remove %s, is mounted", req.Name)
- return errors.Errorf("volume %s is mounted and cannot be removed")
+ return errors.Errorf("volume %s is mounted and cannot be removed", req.Name)
}
delete(d.volumes, req.Name)