From d935bfc679ec16eb6688685f662ad049ef2267fd Mon Sep 17 00:00:00 2001 From: Axel Burri Date: Tue, 19 May 2015 18:50:56 +0200 Subject: [PATCH] btrbk: fixed error messages of "diff" action --- btrbk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/btrbk b/btrbk index 201f585..5da8105 100755 --- a/btrbk +++ b/btrbk @@ -1366,13 +1366,13 @@ MAIN: # FIXME: allow ssh:// src/dest (does not work since the configuration is not yet read). my $src_vol = vinfo($src_url, { CONTEXT => "cmdline" }); - unless(vinfo_root($src_vol)) { ERROR "Failed to fetch subvolume detail for: $src_vol->{PRINT}" . ($err ? ": $err" : ""); exit 1; } + unless(vinfo_root($src_vol)) { ERROR "Failed to fetch subvolume detail for '$src_vol->{PRINT}'" . ($err ? ": $err" : ""); exit 1; } if($src_vol->{is_root}) { ERROR "Subvolume at \"$src_url\" is btrfs root!"; exit 1; } unless($src_vol->{cgen}) { ERROR "Subvolume at \"$src_url\" does not provide cgen"; exit 1; } my $target_vol = vinfo($target_url, { CONTEXT => "cmdline" }); - unless(vinfo_root($target_vol)) { ERROR "Failed to fetch subvolume detail for: $src_vol->{PRINT}" . ($err ? ": $err" : ""); exit 1; } - unless($src_vol->{cgen}) { ERROR "Subvolume at \"$src_url\" does not provide cgen"; exit 1; } + unless(vinfo_root($target_vol)) { ERROR "Failed to fetch subvolume detail for '$target_vol->{PRINT}'" . ($err ? ": $err" : ""); exit 1; } + unless($target_vol->{cgen}) { ERROR "Subvolume at \"$target_url\" does not provide cgen"; exit 1; } my $uuid_list = vinfo_fs_list($src_vol); unless($uuid_list->{$target_vol->{uuid}}) {