From 06420978d53f52fb9493487e3d937df2e8fd30a8 Mon Sep 17 00:00:00 2001 From: Edwin Eefting Date: Tue, 26 Sep 2023 18:23:08 +0200 Subject: [PATCH] better output --- zfs_autobackup/ZfsDataset.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zfs_autobackup/ZfsDataset.py b/zfs_autobackup/ZfsDataset.py index c32debd..1d6682a 100644 --- a/zfs_autobackup/ZfsDataset.py +++ b/zfs_autobackup/ZfsDataset.py @@ -834,9 +834,9 @@ class ZfsDataset: target_snapshot=target_dataset.find_snapshot(source_snapshot) if target_snapshot: if guid_check and source_snapshot.properties['guid']!=target_snapshot.properties['guid']: - source_snapshot.warning("Common snapshot has invalid guid, ignoring.") + target_snapshot.warning("Common snapshot has invalid guid, ignoring.") else: - source_snapshot.debug("common snapshot") + target_snapshot.debug("common snapshot") return source_snapshot target_dataset.error("Cant find common snapshot with source.") raise (Exception("You probably need to delete the target dataset to fix this.")) @@ -1031,7 +1031,7 @@ class ZfsDataset: if not destroy_incompatible: for snapshot in incompatible_target_snapshots: snapshot.error("Incompatible snapshot") - raise (Exception("Please destroy incompatible snapshots or use --destroy-incompatible.")) + raise (Exception("Please destroy incompatible snapshots on target, or use --destroy-incompatible.")) else: for snapshot in incompatible_target_snapshots: snapshot.verbose("Incompatible snapshot")