Error cause - jellyfish-tom/TIL GitHub Wiki

[SOURCES]

Allows adding { case: "some cause here" } to error instance while throwing it.

As in:

throw new Error('Upload job result failed', { cause: err });