From 9360f36ebd3b17efd4aada1189c4bc33526833e1 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Mon, 3 May 2021 13:00:32 -0700 Subject: [PATCH] all: use lower-case letters at the start of error message Signed-off-by: Josh Bleecher Snyder --- cmd/tailscaled/tailscaled_windows.go | 4 ++-- wgengine/router/ifconfig_windows.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/tailscaled/tailscaled_windows.go b/cmd/tailscaled/tailscaled_windows.go index c87da1773..9d8eb7b88 100644 --- a/cmd/tailscaled/tailscaled_windows.go +++ b/cmd/tailscaled/tailscaled_windows.go @@ -168,7 +168,7 @@ func startIPNServer(ctx context.Context, logid string) error { r, err := router.New(logf, dev) if err != nil { dev.Close() - return nil, fmt.Errorf("Router: %w", err) + return nil, fmt.Errorf("router: %w", err) } if wrapNetstack { r = netstack.NewSubnetRouterWrapper(r) @@ -188,7 +188,7 @@ func startIPNServer(ctx context.Context, logid string) error { if err != nil { r.Close() dev.Close() - return nil, fmt.Errorf("Engine: %w", err) + return nil, fmt.Errorf("engine: %w", err) } onlySubnets := true if wrapNetstack { diff --git a/wgengine/router/ifconfig_windows.go b/wgengine/router/ifconfig_windows.go index d367eccb8..9ee2f4cf2 100644 --- a/wgengine/router/ifconfig_windows.go +++ b/wgengine/router/ifconfig_windows.go @@ -359,7 +359,7 @@ func configureInterface(cfg *Config, tun *tun.NativeTun) (retErr error) { firstGateway6 = &ipnet.IP } else if route.IP.Is4() && firstGateway4 == nil { // TODO: do same dummy behavior as v6? - return errors.New("Due to a Windows limitation, one cannot have interface routes without an interface address") + return errors.New("due to a Windows limitation, one cannot have interface routes without an interface address") } ipn := route.IPNet()