diff --git a/core/commands2/add.go b/core/commands2/add.go index f6ec984d44c..148bb03c924 100644 --- a/core/commands2/add.go +++ b/core/commands2/add.go @@ -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)