mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
lvconvert: change errors to internal ones
Since these errors should never happen, change them to internal errors.
This commit is contained in:
parent
b140bba9fe
commit
5ecd65e6f2
@ -4693,12 +4693,12 @@ static int _lvconvert_to_thin_with_external_single(struct cmd_context *cmd,
|
||||
}
|
||||
|
||||
if (!(thinpool_lv = find_lv(vg, thinpool_name))) {
|
||||
log_error("LV %s cannot be found.", display_lvname(thinpool_lv));
|
||||
log_error(INTERNAL_ERROR "LV %s cannot be found.", thinpool_name);
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!lv_is_thin_pool(thinpool_lv)) {
|
||||
log_error("LV %s is not a thin pool.", display_lvname(thinpool_lv));
|
||||
log_error(INTERNAL_ERROR "LV %s is not a thin pool.", display_lvname(thinpool_lv));
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user