[PATCH v2 13/14] btrfs-progs: image: Output error message for chunk tree build error

WenRuo Qu
2019-07-02T10:24:46Z

image/main.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/image/main.c b/image/main.c
index 2256138df079..0be3b45569ed 100644
--- a/image/main.c
+++ b/image/main.c
@@ -2811,8 +2811,10 @@ static int restore_metadump(const char *input, FILE *out, int old_restore,

if (!multi_devices && !old_restore) {
ret = build_chunk_tree(&mdrestore, cluster);
- if (ret)
+ if (ret) {
+ error("failed to build chunk tree");
goto out;
+ }
if (!list_empty(&mdrestore.overlapping_chunks))
remap_overlapping_chunks(&mdrestore);
}
--
2.22.0