summaryrefslogtreecommitdiff
path: root/system/search/backup.go
diff options
context:
space:
mode:
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 {