Skip to content

Commit

Permalink
cmds2/add: return correct error
Browse files Browse the repository at this point in the history
  • Loading branch information
jbenet committed Nov 12, 2014
1 parent 173a041 commit 8ca1b9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/commands2/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ remains to be implemented.

dagnodes, err := add(n, readers)
if err != nil {
return nil, errors.New("cast error")
return nil, err
}

// TODO: include fs paths in output (will need a way to specify paths in underlying filearg system)
Expand Down

0 comments on commit 8ca1b9c

Please sign in to comment.