wrap multipart errors in dedicated error : ErrInvalidMultipart

This commit is contained in:
Adrien Marquès 2020-03-20 22:35:30 +01:00
parent cdbe4cceac
commit dc34d9a81a
Signed by: xdrm-brackets
GPG Key ID: D75243CA236D825E
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ func (i *Set) parseMultipart(req *http.Request) error {
// 2. parse multipart // 2. parse multipart
if err = mpr.Parse(); err != nil { if err = mpr.Parse(); err != nil {
return err return fmt.Errorf("%s: %w", err, ErrInvalidMultipart)
} }
for name, param := range i.service.Form { for name, param := range i.service.Form {