Skip to content

Commit

Permalink
Clarify the error message when a zip file is corrupted. Fixes #357
Browse files Browse the repository at this point in the history
  • Loading branch information
simulot committed Jul 14, 2024
1 parent 528f7e6 commit fc12e67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/fshelper/parseArgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ func ParsePath(args []string, googlePhoto bool) ([]fs.FS, error) {
case strings.HasSuffix(lowA, ".zip"):
files, err := expandNames(a)
if err != nil {
errs = errors.Join(errs, err)
errs = errors.Join(errs, fmt.Errorf("%s: %w", a, err))
break
}
for _, f := range files {
fsys, err := zip.OpenReader(f)
if err != nil {
errs = errors.Join(errs, err)
errs = errors.Join(errs, fmt.Errorf("%s: %w", a, err))
continue
}
fsyss = append(fsyss, fsys)
Expand Down

0 comments on commit fc12e67

Please sign in to comment.