diff options
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r-- | modules/caddyhttp/encode/caddyfile.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/caddyhttp/encode/caddyfile.go b/modules/caddyhttp/encode/caddyfile.go index 2f0e151..4764e9b 100644 --- a/modules/caddyhttp/encode/caddyfile.go +++ b/modules/caddyhttp/encode/caddyfile.go @@ -68,7 +68,7 @@ func (enc *Encode) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { name := d.Val() mod, err := caddy.GetModule("http.encoders." + name) if err != nil { - return fmt.Errorf("getting encoder module '%s': %v", mod.Name, err) + return fmt.Errorf("getting encoder module '%s': %v", name, err) } unm, ok := mod.New().(caddyfile.Unmarshaler) if !ok { |