Use `Error.cause` to contain the error reason
connor4312 opened this issue · comments
Connor Peet commented
Testing microsoft/vscode#226605
Error.cause is a standard field used to indicate an underlying reason for an error, and is picked up automatically be some logging libraries, so I suggest using that over or in addition to value