Skip to content

Commit

Permalink
resolve: restore error message
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
  • Loading branch information
Stebalien committed Oct 30, 2018
1 parent 37f3381 commit 126d996
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/commands/resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ Resolve the value of an IPFS DAG path:
}

if rp.Remainder() != "" {
return fmt.Errorf("path does not end on a dag-node boundary")
// TODO: js expects this error. Instead of fixing this
// error, we should fix #5703.
return fmt.Errorf("found non-link at given path")
}

return cmds.EmitOnce(res, &ncmd.ResolvedPath{Path: path.Path("/" + rp.Namespace() + "/" + rp.Cid().String())})
Expand Down

0 comments on commit 126d996

Please # to comment.