Commit 69db1b4e authored by Juan Batiz-Benet's avatar Juan Batiz-Benet

bugfix: add was not setting error

parent 11a85c7d
......@@ -17,6 +17,7 @@ import (
pinning "github.com/ipfs/go-ipfs/pin"
ft "github.com/ipfs/go-ipfs/unixfs"
u "github.com/ipfs/go-ipfs/util"
"github.com/ipfs/go-ipfs/util/debugerror"
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/cheggaaa/pb"
)
......@@ -106,6 +107,7 @@ remains to be implemented.
_, err = addFile(n, file, outChan, progress, wrap)
if err != nil {
res.SetError(debugerror.Wrap(err), cmds.ErrNormal)
return
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment