diff --git a/core/commands/add.go b/core/commands/add.go index 7fc8d10a327..2e25d92b48b 100644 --- a/core/commands/add.go +++ b/core/commands/add.go @@ -112,6 +112,9 @@ remains to be implemented. }() }, PostRun: func(req cmds.Request, res cmds.Response) { + if res.Error() != nil { + return + } outChan, ok := res.Output().(<-chan interface{}) if !ok { res.SetError(u.ErrCast(), cmds.ErrNormal)