Perhaps the Error cause proposal could help with that particular example?
throw new Error('Value was not a string', { cause: value })
Perhaps the Error cause proposal could help with that particular example?
throw new Error('Value was not a string', { cause: value })