process.cwd() fails in a not usefully descriptive way #57045
Labels
confirmed-bug
Issues with confirmed bugs.
good first issue
Issues that are suitable for first-time contributors.
process
Issues and PRs related to the process subsystem.
Version
22.14.0
Platform
Subsystem
process
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
Could be made clearer that this is a failure of
process.cwd()
as the stack trace makes no mention of it. One may make the connection by context, but not necessarily--it's non-obvious. If this was triggered by aprocess.cwd()
deep in your code somewhere it could be quite confusing.It'd also probably be useful to explain the possible scenario in which this could be triggered--the directory the process was working in was deleted somehow.
What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: