From eacaffd0e303d66df80e0fef531fcc9ff34b2815 Mon Sep 17 00:00:00 2001 From: Jordan Whited Date: Tue, 26 May 2020 16:24:45 -0700 Subject: [PATCH] fix error returned in setup() --- setup.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.go b/setup.go index 86fae5f..2c64708 100644 --- a/setup.go +++ b/setup.go @@ -36,8 +36,9 @@ func setup(c *caddy.Controller) error { client, err := wgctrl.New() if err != nil { - return fmt.Errorf("wgsd: error constructing wgctrl client: %v", - err) + return plugin.Error("wgsd", + fmt.Errorf("wgsd: error constructing wgctrl client: %v", + err)) } // Add the Plugin to CoreDNS, so Servers can use it in their plugin chain.