diff options
Diffstat (limited to 'libgo/go/net/dial.go')
-rw-r--r-- | libgo/go/net/dial.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/net/dial.go b/libgo/go/net/dial.go index 10c67dcc40a..85d54b3703c 100644 --- a/libgo/go/net/dial.go +++ b/libgo/go/net/dial.go @@ -59,10 +59,10 @@ func Dial(net, addr string) (c Conn, err os.Error) { case *IPAddr: c, err = DialIP(net, nil, ra) default: - err = UnknownNetworkError(net) + err = &OpError{"dial", net + " " + addr, nil, UnknownNetworkError(net)} } if err != nil { - return nil, &OpError{"dial", net + " " + addr, nil, err} + return nil, err } return } |