devabhishekpal commented on PR #6944:
URL: https://github.com/apache/ozone/pull/6944#issuecomment-2232781728

   Extending on the above, if we use `||` it means the error would be thrown in 
either if it gets rejected, or if it is cancelled.
   But this is not correct, as there might be scenarios where the API might 
reject the Promise, but the error is not cancellation.
   
   In that scenario we do not want to throw the error, but fallback to the 
default values.
   We want to throw the error only when the request is rejected as the call was 
cancelled.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to