diff --git a/cmd/restic/cmd_debug.go b/cmd/restic/cmd_debug.go index 2e5b62f47..653c4a99c 100644 --- a/cmd/restic/cmd_debug.go +++ b/cmd/restic/cmd_debug.go @@ -319,7 +319,7 @@ func loadBlobs(ctx context.Context, repo restic.Repository, pack restic.ID, list err := be.Load(ctx, h, int(blob.Length), int64(blob.Offset), func(rd io.Reader) error { n, err := io.ReadFull(rd, buf) if err != nil { - return fmt.Errorf("read error after %d bytes: %v\n", n, err) + return fmt.Errorf("read error after %d bytes: %v", n, err) } return nil })