diff --git a/libtisbackup/backup_rsync_btrfs.py b/libtisbackup/backup_rsync_btrfs.py index 66b892c..7cf93e9 100644 --- a/libtisbackup/backup_rsync_btrfs.py +++ b/libtisbackup/backup_rsync_btrfs.py @@ -200,8 +200,8 @@ class backup_rsync_btrfs(backup_generic): elif (returncode == 23): self.logger.warning("[" + self.backup_name + "] unable so set uid on some files") elif (returncode != 0): - self.logger.error("[" + self.backup_name + "] shell program exited with error code ") - raise Exception("[" + self.backup_name + "] shell program exited with error code " + str(returncode), cmd) + self.logger.error("[" + self.backup_name + "] shell program exited with error code ", str(returncode)) + raise Exception("[" + self.backup_name + "] shell program exited with error code " + str(returncode), cmd, log[-512:]) else: print cmd