summaryrefslogtreecommitdiffstats
path: root/tools/pvremove.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2006-12-13 18:40:23 +0000
committerAlasdair Kergon <agk@redhat.com>2006-12-13 18:40:23 +0000
commit67e6c7e73d1bde93b8058276358e06ae61205d16 (patch)
treedeebf746250f9db9e025833a3c50798a8b64732e /tools/pvremove.c
parent5b61ca7281e1316b2ef7924b218fbda784cc4730 (diff)
downloadlvm2-67e6c7e73d1bde93b8058276358e06ae61205d16.tar.gz
lvm2-67e6c7e73d1bde93b8058276358e06ae61205d16.tar.xz
lvm2-67e6c7e73d1bde93b8058276358e06ae61205d16.zip
Add missing pvremove error message when device doesn't exist.
Diffstat (limited to 'tools/pvremove.c')
-rw-r--r--tools/pvremove.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/pvremove.c b/tools/pvremove.c
index fe7335bb..68a59460 100644
--- a/tools/pvremove.c
+++ b/tools/pvremove.c
@@ -38,8 +38,8 @@ static int pvremove_check(struct cmd_context *cmd, const char *name)
if (!(pv = pv_read(cmd, name, NULL, NULL, 1))) {
if (arg_count(cmd, force_ARG))
return 1;
- else
- return 0;
+ log_error("Physical Volume %s not found", name);
+ return 0;
}
/* orphan ? */