wrap multipart errors in dedicated error : ErrInvalidMultipart
This commit is contained in:
parent
cdbe4cceac
commit
dc34d9a81a
|
@ -228,7 +228,7 @@ func (i *Set) parseMultipart(req *http.Request) error {
|
|||
|
||||
// 2. parse multipart
|
||||
if err = mpr.Parse(); err != nil {
|
||||
return err
|
||||
return fmt.Errorf("%s: %w", err, ErrInvalidMultipart)
|
||||
}
|
||||
|
||||
for name, param := range i.service.Form {
|
||||
|
|
Loading…
Reference in New Issue