srijeet0406 commented on a change in pull request #6003:
URL: https://github.com/apache/trafficcontrol/pull/6003#discussion_r677629569



##########
File path: traffic_ops/traffic_ops_golang/profile/profiles.go
##########
@@ -149,7 +149,7 @@ func (prof *TOProfile) Read(h http.Header, useIMS bool) 
([]interface{}, error, e
 
        rows, err := prof.ReqInfo.Tx.NamedQuery(query, queryValues)
        if err != nil {
-               return nil, nil, errors.New("profile read querying: " + 
err.Error()), http.StatusInternalServerError, nil
+               return nil, err, errors.New("profile read querying: " + 
err.Error()), http.StatusInternalServerError, nil

Review comment:
       As I mentioned in the previous comment, this should just stay the same 
as it was before.
   You could add another validation for the param being an int.




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to