diff options
Diffstat (limited to 'rpc/config.go')
-rw-r--r-- | rpc/config.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rpc/config.go b/rpc/config.go index 67dc1094..8a34752a 100644 --- a/rpc/config.go +++ b/rpc/config.go @@ -18,7 +18,7 @@ type config struct { func (cfg *config) listener() (net.Listener, error) { dsn := strings.Split(cfg.Listen, "://") if len(dsn) != 2 { - return nil, errors.New("invalid socket DSN (tcp://:6001, unix://sock.unix)") + return nil, errors.New("invalid socket DSN (tcp://:6001, unix://rpc.sock)") } return net.Listen(dsn[0], dsn[1]) @@ -28,7 +28,7 @@ func (cfg *config) listener() (net.Listener, error) { func (cfg *config) dialer() (net.Conn, error) { dsn := strings.Split(cfg.Listen, "://") if len(dsn) != 2 { - return nil, errors.New("invalid socket DSN (tcp://:6001, unix://sock.unix)") + return nil, errors.New("invalid socket DSN (tcp://:6001, unix://rpc.sock)") } return net.Dial(dsn[0], dsn[1]) |