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:
Srigovind Nayak
2025-06-03 14:34:12 +05:30
parent 576d35b37b
commit ce089f7e2d
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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)