Skip to content

Commit

Permalink
block: rm extra output
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Overbool <[email protected]>
  • Loading branch information
overbool committed Nov 8, 2018
1 parent 8189650 commit e79ac93
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/commands/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,13 @@ It takes a list of base58 encoded multihashes to remove.

err = api.Block().Rm(req.Context, rp, options.Block.Force(force))
if err != nil {
err := res.Emit(&util.RemovedBlock{
if err := res.Emit(&util.RemovedBlock{
Hash: rp.Cid().String(),
Error: err.Error(),
})
if err != nil {
}); err != nil {
return err
}
continue
}

if !quiet {
Expand Down

0 comments on commit e79ac93

Please sign in to comment.