hey all. is there some way in JavaScript (when an error is thrown) to trim off parts of the stack that are outside your code? I sometimes have issues with AWS libraries where the stack is just loaded with stuff I don’t care about because it’s within the AWS SDK.
Sam Hulick
01/11/2022, 4:16 AM
eh, I guess not.
e.stack
is just a string.. and you get what you get.
t
thdxr
01/11/2022, 11:50 AM
You can technically split it by line and trim it
s
Sam Hulick
01/11/2022, 2:33 PM
yeah, but the issue is that the error only has so many stack trace lines when it gets thrown. I thought maybe when it’s logging it, it’s only showing the first 7-10 lines, and I could somehow shave those off to reveal more. but that’s not the case