mirror of
https://github.com/restic/restic.git
synced 2025-12-11 18:47:50 +00:00
use errors.Fatalf instead of custom formatting
This commit is contained in:
@@ -87,7 +87,7 @@ func (fp *CommandReader) wait() error {
|
||||
err := fp.cmd.Wait()
|
||||
if err != nil {
|
||||
// Use a fatal error to abort the snapshot.
|
||||
return errors.Fatal(fmt.Errorf("command failed: %w", err).Error())
|
||||
return errors.Fatalf("command failed: %v", err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user