btrbk: bugfix: print correct target on "same backup target error"

pull/88/head
Axel Burri 2016-03-30 23:23:07 +02:00
parent c4073f6c53
commit 7ee5778dee
1 changed files with 1 additions and 1 deletions

2
btrbk
View File

@ -3474,7 +3474,7 @@ MAIN:
# check for duplicate snapshot locations
my $snapshot_backup_target = ($symlink{$droot->{URL}} // $droot->{URL}) . '/' . $snapshot_basename;
if(my $prev = $backup_check{$snapshot_backup_target}) {
ERROR "Subvolume \"$prev\" and \"$svol->{PRINT}\" will create same backup target: $snapshot_target";
ERROR "Subvolume \"$prev\" and \"$svol->{PRINT}\" will create same backup target: $snapshot_backup_target";
ERROR "Please fix \"snapshot_name\" or \"target\" configuration options!";
exit 1;
}