You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There might not be a clear benefit of using 'Error' with cause property in NodeJS. This design originally came by respecting the design of gax-python, and that's good for Python because it fits with try...catch pattern.
gax-nodejs doesn't expect try...catch pattern at all, and we always use bare Error, thus it turns out this design does not fit to the actual usage quite well. Let's remove this.
The text was updated successfully, but these errors were encountered:
Based on googleapis/google-cloud-node#1721 (comment):
There might not be a clear benefit of using 'Error' with
cause
property in NodeJS. This design originally came by respecting the design of gax-python, and that's good for Python because it fits with try...catch pattern.gax-nodejs doesn't expect try...catch pattern at all, and we always use bare
Error
, thus it turns out this design does not fit to the actual usage quite well. Let's remove this.The text was updated successfully, but these errors were encountered: