diff options
-rw-r--r-- | tools/vgck.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/vgck.c b/tools/vgck.c index 6a6eb1ec..e6e1bdb6 100644 --- a/tools/vgck.c +++ b/tools/vgck.c @@ -23,13 +23,13 @@ static int vgck_single(struct cmd_context *cmd, const char *vg_name, struct volume_group *vg, int consistent, void *handle) { - if (!consistent) { - log_error("Volume group \"%s\" inconsistent", vg_name); + if (!vg) { + log_error("Volume group \"%s\" not found", vg_name); return ECMD_FAILED; } - if (!vg) { - log_error("Volume group \"%s\" not found", vg_name); + if (!consistent) { + log_error("Volume group \"%s\" inconsistent", vg_name); return ECMD_FAILED; } |