-
Notifications
You must be signed in to change notification settings - Fork 676
Preserve stack track of original errors #561
Copy link
Copy link
Closed
Labels
auto-triage-staleenhancementM-T: A feature request for new functionalityM-T: A feature request for new functionalityneeds infoAn issue that is claimed to be a bug and hasn't been reproduced, or otherwise needs more infoAn issue that is claimed to be a bug and hasn't been reproduced, or otherwise needs more info
Metadata
Metadata
Assignees
Labels
auto-triage-staleenhancementM-T: A feature request for new functionalityM-T: A feature request for new functionalityneeds infoAn issue that is claimed to be a bug and hasn't been reproduced, or otherwise needs more infoAn issue that is claimed to be a bug and hasn't been reproduced, or otherwise needs more info
WebClient.tshas several methods for wrapping errors from the client:https://github.com/slackapi/node-slack-sdk/blob/master/src/WebClient.ts#L678-L718
All of them create a
new Error, which means the stack trace that is returned when these errors occur is not very helpful to users of the SDK. For example, here's the error I'm currently trying to debug:This stackoverflow discusison has some options for preserving
error.stackwhen wrapping errors.What type of issue is this? (place an
xin one of the[ ])Requirements (place an
xin each of the[ ])Reproducible in:
@slack/clientversion: 4.0.1node version: 8.9.4
OS version(s): macOS 10.13.4