DImuthuUpe commented on PR #100:
URL: https://github.com/apache/airavata-mft/pull/100#issuecomment-1507940285

   Thanks for the fix @impiyush83. Because the error messages are repeated, can 
you move them all into one utility function and call that in every place where 
you see this exception? I suggest something like following
   
   error_handler.py
   
   def handle_error(ex):
       if ex is grpc.RpcError
         if  ex.code() == grpc.StatusCode.UNAVAILABLE:
           print(f' MFT server is unavailable. ')
   


-- 
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