Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c4d58e7

Browse files
committedMar 26, 2024
fs: add stacktrace to fs/promises
Sync functions in fs throwed an error with a stacktrace which is helpful for debugging. But functions in fs/promises throwed an error without a stacktrace. This commit adds stacktraces by calling Error.captureStacktrace and re-throwing the error. Refs: nodejs#34817 PR-URL: nodejs#49849 Backport-PR-URL: nodejs#51127 Fixes: nodejs#50160 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Zeyu "Alex" Yang <[email protected]> Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Jiawen Geng <[email protected]>
1 parent c16cfb7 commit c4d58e7

File tree

4 files changed

+248
-90
lines changed

4 files changed

+248
-90
lines changed
 

0 commit comments

Comments
 (0)
Please sign in to comment.