Skip to content

Commit

Permalink
Updated Error Message
Browse files Browse the repository at this point in the history
  • Loading branch information
jagan-parthiban committed Jul 5, 2023
1 parent f2a9ac2 commit 66ddbdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion traffic_ops/traffic_ops_golang/division/divisions.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func UpdateDivision(w http.ResponseWriter, r *http.Request) {

intRequestId, convErr := strconv.Atoi(requestedID)
if convErr != nil {
api.HandleErr(w, r, inf.Tx.Tx, http.StatusBadRequest, convErr, nil)
api.HandleErr(w, r, inf.Tx.Tx, http.StatusBadRequest, fmt.Errorf("division update error: %w, while converting from string to int", convErr), nil)
}
// check if the entity was already updated
userErr, sysErr, errCode = api.CheckIfUnModified(r.Header, inf.Tx, intRequestId, "division")
Expand Down

0 comments on commit 66ddbdc

Please sign in to comment.