From 0a4e80c744f615c2569e868427791f5a1e841dc8 Mon Sep 17 00:00:00 2001 From: hiveminded Date: Thu, 13 Jul 2017 16:38:35 +0300 Subject: [PATCH] add example link for IgnoreServerErrors https://github.com/kataras/iris/blob/master/HISTORY.md#th-13-july-2017--v801 :sound: look for details at https://github.com/kataras/iris/blob/master/HISTORY.md#th-13-july-2017--v801 Former-commit-id: 9466a2a6e697f17e5b47cb7cacec087c745af146 --- HISTORY.md | 2 +- configuration.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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"`