diff options
Diffstat (limited to 'modules/caddyhttp/errors.go')
-rw-r--r-- | modules/caddyhttp/errors.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/caddyhttp/errors.go b/modules/caddyhttp/errors.go index 85dc3df..9d1cf47 100644 --- a/modules/caddyhttp/errors.go +++ b/modules/caddyhttp/errors.go @@ -82,6 +82,9 @@ func (e HandlerError) Error() string { return strings.TrimSpace(s) } +// Unwrap returns the underlying error value. See the `errors` package for info. +func (e HandlerError) Unwrap() error { return e.Err } + // randString returns a string of n random characters. // It is not even remotely secure OR a proper distribution. // But it's good enough for some things. It excludes certain |