aboutsummaryrefslogtreecommitdiff
path: root/plugin/errors/setup.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/errors/setup.go')
-rw-r--r--plugin/errors/setup.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugin/errors/setup.go b/plugin/errors/setup.go
index 19bdcdb80..082f222b0 100644
--- a/plugin/errors/setup.go
+++ b/plugin/errors/setup.go
@@ -37,7 +37,13 @@ func setup(c *caddy.Controller) error {
func errorsParse(c *caddy.Controller) (errorHandler, error) {
handler := errorHandler{}
+ i := 0
for c.Next() {
+ if i > 0 {
+ return handler, plugin.ErrOnce
+ }
+ i++
+
args := c.RemainingArgs()
switch len(args) {
case 0: