Skip to content

Commit

Permalink
clarify error message when a zip file is corrupted (#374)
Browse files Browse the repository at this point in the history
* Clarify the error message when a zip file is corrupted. Fixes #357
  • Loading branch information
simulot committed Jul 14, 2024
1 parent 53889ea commit 4460aa3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ fixes:
- [#299](https://github.com/simulot/immich-go/issues/299) Real time GUI log only shows 4 lines #299
- [#370](https://github.com/simulot/immich-go/issues/370) ui: clearly mention when the upload in completed
- [#232](https://github.com/simulot/immich-go/issues/232) Exclude based on filename / glob
- [#357](https://github.com/simulot/immich-go/issues/357) clarify error message when a zip file is corrupted

## Release 0.19.1

Expand Down
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 4460aa3

Please sign in to comment.