You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2019/04/04 16:48:21 UTC

[GitHub] [trafficcontrol] moltzaum commented on issue #3447: TO Client: Alerts are not returned even when they exist?

moltzaum commented on issue #3447: TO Client: Alerts are not returned even when they exist?
URL: https://github.com/apache/trafficcontrol/issues/3447#issuecomment-479976383
 
 
   I agree that checking the exact message may be brittle, it demonstrates what I want to do better than looking at a severity level. Perhaps I can make a get call and determine the id doesn't exist because the returned array is empty, but that doesn't seem like the best solution.
   
   For my specific case, simply returning the error code would suffice, and some client functions actually do this (eg. everything in `roles.go` as well as `UpdateStaticDNSEntryByID`. In general I think updating functions to return status codes would be better, but I'm still confused why we return alerts, when we only do so for a "success" alert.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services