Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

stop using errors.cause, simply return the error itself #56

@jmuk

Description

@jmuk

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.

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.triage meI really want to be triaged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions