Commit edbaa3f6 authored by Brian Tiger Chow's avatar Brian Tiger Chow

fix(namesys) use the error that already exists

parent 0bfadea0
package namesys
import (
"fmt"
"net"
b58 "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-base58"
......@@ -9,8 +8,6 @@ import (
mh "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
)
var ErrNotFound = fmt.Errorf("namesys: name not found")
// DNSResolver implements a Resolver on DNS domains
type DNSResolver struct {
// TODO: maybe some sort of caching?
......@@ -45,5 +42,5 @@ func (r *DNSResolver) Resolve(name string) (string, error) {
return t, nil
}
return "", ErrNotFound
return "", ErrResolveFailed
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment