@cryptotaxi247 / kubo / commits / 126d996f6

resolve: restore error message

License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>

Steven Allen committed Oct 30, 2018 at 13:02 UTC 126d996f60d6d7ff7153015ca90f1853a91fbcfb
1 file changed +3 -1
core/commands/resolve.go
+3 -1
@@ -136,7 +136,9 @@ Resolve the value of an IPFS DAG path:
136 }
137
138 if rp.Remainder() != "" {
139 - return fmt.Errorf("path does not end on a dag-node boundary")
139 + // TODO: js expects this error. Instead of fixing this
140 + // error, we should fix #5703.
141 + return fmt.Errorf("found non-link at given path")
142 }
143
144 return cmds.EmitOnce(res, &ncmd.ResolvedPath{Path: path.Path("/" + rp.Namespace() + "/" + rp.Cid().String())})