ocket8888 commented on code in PR #7099: URL: https://github.com/apache/trafficcontrol/pull/7099#discussion_r1013301078
########## traffic_ops/traffic_ops_golang/deliveryservice/deliveryservices.go: ########## @@ -138,7 +162,7 @@ func CreateV30(w http.ResponseWriter, r *http.Request) { ds := tc.DeliveryServiceV30{} if err := json.NewDecoder(r.Body).Decode(&ds); err != nil { - api.HandleErr(w, r, inf.Tx.Tx, http.StatusBadRequest, errors.New("decoding: "+err.Error()), nil) + api.HandleErr(w, r, inf.Tx.Tx, http.StatusBadRequest, fmt.Errorf("decoding: %w", err), nil) Review Comment: took it out -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@trafficcontrol.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org