summaryrefslogtreecommitdiff
path: root/modules/caddyhttp
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-09-19 12:42:36 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2019-09-19 12:42:36 -0600
commitba29f9d41d7951bde07dc2e0d6a1471c40bb7145 (patch)
tree1a76ab0796e57a31bf8fc36ff4bb34779215edb7 /modules/caddyhttp
parent40e05e5a01d50b381fa7a7a472ea38f44518f02c (diff)
httpcaddyfile: Global storage configuration (closes #2758)
Diffstat (limited to 'modules/caddyhttp')
-rw-r--r--modules/caddyhttp/encode/caddyfile.go2
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 {