Skip to content

Commit

Permalink
Clear errors after handle
Browse files Browse the repository at this point in the history
  • Loading branch information
wgwntp committed Aug 1, 2019
1 parent 3f8de49 commit a9926a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ func (res *Resource) Import(container Container, context *qor.Context, callbacks
if errors, ok := err.(errorsInterface); ok {
for _, err := range errors.GetErrors() {
handleError(err)

}
//Avoid repeated handle errors , clear context.Errors
context.Errors = qor.Errors{}
} else if errValidations, ok := err.(*validations.Error); ok {
for idx, cell := range progress.Cells {
if cell.Header == errValidations.Column {
Expand Down

0 comments on commit a9926a3

Please sign in to comment.