better sterr messages. fixes #47

This commit is contained in:
Edwin Eefting 2020-07-09 16:43:01 +02:00
parent fc3026abdc
commit 470b4aaf55

View File

@ -1720,7 +1720,7 @@ class ZfsAutobackup:
source_dataset.sync_snapshots(target_dataset, show_progress=self.args.progress, features=common_features, filter_properties=filter_properties, set_properties=set_properties, ignore_recv_exit_code=self.args.ignore_transfer_errors, source_holds= not self.args.no_holds, rollback=self.args.rollback, raw=self.args.raw, other_snapshots=self.args.other_snapshots, no_send=self.args.no_send, destroy_incompatible=self.args.destroy_incompatible)
except Exception as e:
fail_count=fail_count+1
self.error("DATASET FAILED: "+str(e))
source_dataset.error("FAILED: "+str(e))
if self.args.debug:
raise