RedMapleTech/ginx

Non-validation errors are swallowed

Closed this issue · 1 comments

On opts.response and opts.detail if the error is not a ValidationError then it is swallowed and no way to access it.

if vErr := (v.ValidationErrors{}); errors.As(err, &vErr) && opts.detail {

There is no else case that also considers opts.detail