summaryrefslogtreecommitdiff
path: root/system/search/backup.go
diff options
context:
space:
mode:
authorViktoras Kuznecovas <viktoras@kuznecovas.net>2018-11-12 22:06:56 +0200
committerSteve Manuel <nilslice@gmail.com>2019-01-01 16:06:11 -0700
commitf91b4299660629cc3befbb1abcd80526a54abb1a (patch)
treeeeb25f29f2de528367e6549304a7ad36a063f841 /system/search/backup.go
parent7ff15eacabd5ceafdffedb5ee20dad1b2950f49e (diff)
bubble archiving errors
Diffstat (limited to 'system/search/backup.go')
-rw-r--r--system/search/backup.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/search/backup.go b/system/search/backup.go
index 9223636..4017b15 100644
--- a/system/search/backup.go
+++ b/system/search/backup.go
@@ -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 {