From 0d518b4cb1ad528cf60ed299a088145241d03555 Mon Sep 17 00:00:00 2001 From: Simon Lipp Date: Mon, 27 Nov 2023 19:05:10 +0100 Subject: [PATCH] fix: btrfs: restore was not properly reporting errors --- sources/btrfs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/btrfs.go b/sources/btrfs.go index f384e6f..c782554 100644 --- a/sources/btrfs.go +++ b/sources/btrfs.go @@ -166,7 +166,7 @@ func (s *btrfsSource) RestoreBackup(targetDir string, backup uback.Backup, data cmd.Stderr = os.Stderr err := cmd.Run() if err != nil { - return nil + return err } return os.Rename(path.Join(targetDir, "_tmp-"+backup.Snapshot.Name()), path.Join(targetDir, backup.Snapshot.Name()))