Skip to content

Commit

Permalink
Merge pull request #107 from tsawler/development
Browse files Browse the repository at this point in the history
Improve error message.
  • Loading branch information
tsawler authored May 18, 2023
2 parents ec56158 + 696cdf7 commit 5cc31e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func (t *Tools) UploadFiles(r *http.Request, uploadDir string, rename ...bool) (
// Parse the form, so we have access to the file.
err = r.ParseMultipartForm(int64(t.MaxFileSize))
if err != nil {
return nil, fmt.Errorf("error parsing form data")
return nil, fmt.Errorf("error parsing form data: %v", err)
}

for _, fHeaders := range r.MultipartForm.File {
Expand Down

0 comments on commit 5cc31e4

Please sign in to comment.