License: MIT
Signed-off-by: keks <keks@cryptoscope.co>
This commit is contained in:
keks 2018-09-19 12:52:56 +02:00 committed by Steven Allen
parent 74ec1a9aef
commit caf855b4ec
2 changed files with 3 additions and 4 deletions

View File

@ -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 != "" {

View File

@ -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) {