Since these errors should never happen, change them to internal errors.
}
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;
}
}