Permalink
Browse files

bubble archiving errors

  • Loading branch information...
vkuznecovas authored and nilslice committed Nov 12, 2018
1 parent 7ff15ea commit f91b4299660629cc3befbb1abcd80526a54abb1a
Showing with 7 additions and 1 deletion.
  1. +3 −0 system/admin/upload/backup.go
  2. +4 −1 system/search/backup.go
@@ -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 {
@@ -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 {

0 comments on commit f91b429

Please sign in to comment.