doc: update fs callback example error stack
Update the error stack printed in the default callback example in the fs doc, matching the latest lib/fs.js. Truncates the stack to make it easier to update in the future. PR-URL: https://github.com/nodejs/node/pull/6617 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
bef1ec086d
commit
32b46d91a7
@ -82,16 +82,11 @@ function bad() {
|
|||||||
bad();
|
bad();
|
||||||
|
|
||||||
$ env NODE_DEBUG=fs node script.js
|
$ env NODE_DEBUG=fs node script.js
|
||||||
fs.js:66
|
fs.js:88
|
||||||
throw err;
|
throw backtrace;
|
||||||
^
|
^
|
||||||
Error: EISDIR, read
|
Error: EISDIR: illegal operation on a directory, read
|
||||||
at rethrow (fs.js:61:21)
|
<stack trace.>
|
||||||
at maybeCallback (fs.js:79:42)
|
|
||||||
at Object.fs.readFile (fs.js:153:18)
|
|
||||||
at bad (/path/to/script.js:2:17)
|
|
||||||
at Object.<anonymous> (/path/to/script.js:5:1)
|
|
||||||
<etc.>
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Buffer API
|
## Buffer API
|
||||||
|
Loading…
x
Reference in New Issue
Block a user