diff --git a/middleware/nethttp/example_test.go b/middleware/nethttp/example_test.go index d92e065..53a4134 100644 --- a/middleware/nethttp/example_test.go +++ b/middleware/nethttp/example_test.go @@ -17,8 +17,7 @@ func ExampleExtractSubdomain() { for _, subdomain := range subdomains { if sub, err := nethttp.ExtractSubdomain(subdomain); err != nil { - // log.Fatalf("unexpected error for host: %q", subdomain) - fmt.Printf("unexpected error: %v\n", err) + log.Fatalf("unexpected error for host: %q", subdomain) } else { fmt.Println(sub) }