Skip to content

Commit

Permalink
change err
Browse files Browse the repository at this point in the history
  • Loading branch information
cadyrov committed Nov 20, 2020
1 parent da3708d commit 688d188
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package validation

import (
"fmt"
"net/http"
"reflect"
"strconv"

Expand Down Expand Up @@ -112,7 +113,7 @@ func validateSlice(rv reflect.Value) goerr.IError {
}
}
if len(errs.GetDetails()) > 0 {
return errs
return errs.HTTP(http.StatusBadRequest)
}
return nil
}
Expand Down

0 comments on commit 688d188

Please sign in to comment.