We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e07ec90 commit 95b5ec8Copy full SHA for 95b5ec8
core/commands/filestore.go
@@ -86,9 +86,7 @@ The output is:
86
87
r, ok := v.(*filestore.ListRes)
88
if !ok {
89
- // TODO or just return that error? why didn't we do that before?
90
- log.Error(e.New(e.TypeErr(r, v)))
91
- break
+ return e.New(e.TypeErr(r, v))
92
}
93
94
if r.ErrorMsg != "" {
core/commands/repo.go
@@ -2,6 +2,7 @@ package commands
2
3
import (
4
"bytes"
5
+ "errors"
6
"fmt"
7
"io"
8
"os"
@@ -99,7 +100,7 @@ order to reclaim hard disk space.
99
100
101
102
if errs {
- outChan <- &GcResult{Error: "encountered errors during gc run"}
103
+ res.SetError(errors.New("encountered errors during gc run"), cmdkit.ErrNormal)
104
105
} else {
106
err := corerepo.CollectResult(req.Context(), gcOutChan, func(k cid.Cid) {
0 commit comments