Skip to content

Commit

Permalink
Improve error message
Browse files Browse the repository at this point in the history
Co-authored-by: Shubhendu <shubhendu.tripathi@gmail.com>
  • Loading branch information
ramondeklein and shtripat authored Aug 16, 2024
1 parent cc7e544 commit b34caa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apis/minio.min.io/v2/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func ExtractTar(filesToExtract []string, basePath, tarFileName string) error {

if err != nil {
if errors.Is(err, io.EOF) {
return fmt.Errorf("Tar file contains only %d from the %d files", len(filesToExtract)-success, len(filesToExtract))
return fmt.Errorf("Tar file contains only %d out of %d files", len(filesToExtract)-success, len(filesToExtract))
}
return fmt.Errorf("Tar file extraction failed for file index: %d, with: %w", success, err)
}
Expand Down

0 comments on commit b34caa9

Please sign in to comment.