mirror of
https://github.com/restic/restic.git
synced 2025-10-09 15:10:52 +00:00
backup: rework error reporting for subcommand
This commit is contained in:
@@ -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