summaryrefslogtreecommitdiff
path: root/cmd/btrfs-rec/inspect_scandevices.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-08-29 21:44:40 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-08-30 21:29:20 -0600
commit03bd0222a8ef360c332f78f9e6a3762bde0aea58 (patch)
tree21c16e0c016ebe489e1543a7752ac0cd71492304 /cmd/btrfs-rec/inspect_scandevices.go
parent1b9df7b6a6bd03461a1ce48f70894994aa3db9b3 (diff)
wip
Diffstat (limited to 'cmd/btrfs-rec/inspect_scandevices.go')
-rw-r--r--cmd/btrfs-rec/inspect_scandevices.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd/btrfs-rec/inspect_scandevices.go b/cmd/btrfs-rec/inspect_scandevices.go
index 37bafe4..5c8b2b0 100644
--- a/cmd/btrfs-rec/inspect_scandevices.go
+++ b/cmd/btrfs-rec/inspect_scandevices.go
@@ -33,7 +33,12 @@ func init() {
}
dlog.Info(ctx, "Writing scan results to stdout...")
- return writeScanResults(os.Stdout, results)
+ if err := writeScanResults(os.Stdout, results); err != nil {
+ return err
+ }
+ dlog.Info(ctx, "... done writing")
+
+ return nil
},
})
}