diff --git a/HISTORY.md b/HISTORY.md index 030f78ce..e7b70714 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -58,7 +58,7 @@ WithoutServerError(errors ...error) Configurator By default no error is being ignored, of course. Example code: -[_examples/http-listening/omit-server-errors](https://github.com/kataras/iris/tree/master/_examples/http-listening/omit-server-errors) +[_examples/http-listening/omit-server-errors](https://github.com/kataras/iris/tree/master/_examples/http-listening/listen-addr/omit-server-errors) ```go package main diff --git a/configuration.go b/configuration.go index a69d2c0f..305ff707 100644 --- a/configuration.go +++ b/configuration.go @@ -103,6 +103,8 @@ type Configurator func(*Application) // will return `nil` if the server's error was `http/iris#ErrServerClosed`. // // See `Configuration#IgnoreServerErrors []string` too. +// +// Example: https://github.com/kataras/iris/tree/master/_examples/http-listening/listen-addr/omit-server-errors func WithoutServerError(errors ...error) Configurator { return func(app *Application) { if len(errors) == 0 { @@ -251,6 +253,8 @@ type Configuration struct { // // See `WithoutServerError(...)` function too. // + // Example: https://github.com/kataras/iris/tree/master/_examples/http-listening/listen-addr/omit-server-errors + // // Defaults to an empty slice. IgnoreServerErrors []string `yaml:"IgnoreServerErrors" toml:"IgnoreServerErrors"`