diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-02-20 23:01:25 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-02-23 14:56:47 +0100 |
commit | 5ecd65e6f2f5264b0ebe1177a714bc8d29e882fb (patch) | |
tree | 0c24ade5c3834a770a6a5a7371b7c38cf7d07392 | |
parent | b140bba9fe69f3bd4c89f15998b3e197fe9bf428 (diff) | |
download | lvm2-5ecd65e6f2f5264b0ebe1177a714bc8d29e882fb.tar.gz |
lvconvert: change errors to internal ones
Since these errors should never happen, change them to internal errors.
-rw-r--r-- | tools/lvconvert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lvconvert.c b/tools/lvconvert.c index 83bdfd04b..4dee97ee0 100644 --- a/tools/lvconvert.c +++ b/tools/lvconvert.c @@ -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; } } |