mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-28 22:08:01 +08:00
fixes
License: MIT Signed-off-by: keks <keks@cryptoscope.co>
This commit is contained in:
parent
74ec1a9aef
commit
caf855b4ec
@ -86,9 +86,7 @@ The output is:
|
||||
|
||||
r, ok := v.(*filestore.ListRes)
|
||||
if !ok {
|
||||
// TODO or just return that error? why didn't we do that before?
|
||||
log.Error(e.New(e.TypeErr(r, v)))
|
||||
break
|
||||
return e.New(e.TypeErr(r, v))
|
||||
}
|
||||
|
||||
if r.ErrorMsg != "" {
|
||||
|
||||
@ -2,6 +2,7 @@ package commands
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"fmt"
|
||||
"io"
|
||||
"os"
|
||||
@ -99,7 +100,7 @@ order to reclaim hard disk space.
|
||||
}
|
||||
}
|
||||
if errs {
|
||||
outChan <- &GcResult{Error: "encountered errors during gc run"}
|
||||
res.SetError(errors.New("encountered errors during gc run"), cmdkit.ErrNormal)
|
||||
}
|
||||
} else {
|
||||
err := corerepo.CollectResult(req.Context(), gcOutChan, func(k cid.Cid) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user