Skip to content

Commit

Permalink
bubble archiving errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznecovas authored and nilslice committed Jan 1, 2019
1 parent 7ff15ea commit f91b429
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions system/admin/upload/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ func Backup(ctx context.Context, res http.ResponseWriter) error {
}

err = backup.ArchiveFS(ctx, "uploads", f)
if err != nil {
return err
}

err = f.Close()
if err != nil {
Expand Down
5 changes: 4 additions & 1 deletion system/search/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ func Backup(ctx context.Context, res http.ResponseWriter) error {
return err
}

backup.ArchiveFS(ctx, "search", f)
err = backup.ArchiveFS(ctx, "search", f)
if err != nil {
return err
}

err = f.Close()
if err != nil {
Expand Down

0 comments on commit f91b429

Please sign in to comment.