cmds2/add: return correct error
Juan Batiz-Benet committed
Nov 11, 2014 at 21:43 UTC
e32ed36ee96c1e7c8cafa059603a4f4d23d01b71
1 file changed
+1
-1
core/commands2/add.go
+1
-1
@@ -44,7 +44,7 @@ remains to be implemented.
44
45
dagnodes, err := add(n, readers)
46
if err != nil {
47
- return nil, errors.New("cast error")
47
+ return nil, err
48
}
49
50
// TODO: include fs paths in output (will need a way to specify paths in underlying filearg system)