mirror of
https://github.com/restic/restic.git
synced 2026-11-18 03:41:27 +00:00
backup: rework error reporting for subcommand
This commit is contained in:
1 parent
8bceb8e359
commit
ee305e6041
3 files changed
+8
-9
No files matched your search
@@ -83,7 +83,7 @@ func (fp *CommandReader) wait() error {
|
||||
err := fp.cmd.Wait()
|
||||
if err != nil {
|
||||
// Use a fatal error to abort the snapshot.
|
||||
return errors.Fatal(err.Error())
|
||||
return errors.Fatal(fmt.Errorf("command failed: %w", err).Error())
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user