mirror of
https://github.com/restic/restic.git
synced 2026-05-19 08:35:23 +00:00
errors: standardize error wrapping for Fatal errors
* replace all occurences of `errors.Fatal(err.Error())` with `errors.Fatalf("%s", err)` so that the error wrapping is correct across the codebase
* updated the review comments
This commit is contained in:
@@ -101,7 +101,7 @@ func runInit(ctx context.Context, opts InitOptions, gopts GlobalOptions, args []
|
||||
PackSize: gopts.PackSize * 1024 * 1024,
|
||||
})
|
||||
if err != nil {
|
||||
return errors.Fatal(err.Error())
|
||||
return errors.Fatalf("%s", err)
|
||||
}
|
||||
|
||||
err = s.Init(ctx, version, gopts.password, chunkerPolynomial)
|
||||
|
||||
Reference in New Issue
Block a user