-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Open
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.
Description
- Version: 13.3.0
- Platform: Windows 10 x64
const fs = require('fs')
fs.readFile('nonexistentfile', (err) => console.log(err.stack))What is the expected output?
The err.stack should contain error text and stack
Same as readFileSync function:
Error: ENOENT: no such file or directory, open 'nonexistentfile'
at Object.openSync (fs.js:446:3)
at Object.readFileSync (fs.js:348:35)
...
What do you see instead?
err.stack only contains error text
Error: ENOENT: no such file or directory, open 'C:\dev\projects\ntest\nonexistentfile'
fs.writeFile have same trouble
Аnother strange thing is that the error text is also different (local/absolute path)
ikokostya, CTimmerman, himself65, slorber, the21st and 24 more
Metadata
Metadata
Assignees
Labels
confirmed-bugIssues with confirmed bugs.Issues with confirmed bugs.fsIssues and PRs related to the fs subsystem / file system.Issues and PRs related to the fs subsystem / file system.