Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[identity] Only set error.cause if it exists (Azure#30629)
### Packages impacted by this PR @azure/identity ### Issues associated with this PR N/A ### Describe the problem that is addressed by this PR A minor cosmetic fix where we only set `cause` if it exists in the options. Before this change, node would print `[cause]: undefined` which can be misleading. Now, we'll omit `cause` entirely if its not set.
- Loading branch information