bugfix: add was not setting error
Juan Batiz-Benet committed
Apr 12, 2015 at 07:46 UTC
69db1b4ec5a61507a02cde1b8b9a43983a27b0b5
1 file changed
+2
core/commands/add.go
+2
@@ -17,6 +17,7 @@ import (
17
pinning "github.com/ipfs/go-ipfs/pin"
18
ft "github.com/ipfs/go-ipfs/unixfs"
19
u "github.com/ipfs/go-ipfs/util"
20
+ "github.com/ipfs/go-ipfs/util/debugerror"
21
22
"github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/cheggaaa/pb"
23
)
@@ -106,6 +107,7 @@ remains to be implemented.
107
108
_, err = addFile(n, file, outChan, progress, wrap)
109
if err != nil {
110
+ res.SetError(debugerror.Wrap(err), cmds.ErrNormal)
111
return
112
}
113
}