From 49af20c2e64a356e84ad01374e6669afde518b6c Mon Sep 17 00:00:00 2001 From: DavidCai Date: Fri, 6 May 2016 21:57:30 +0800 Subject: [PATCH] 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 Reviewed-By: James M Snell --- doc/api/fs.md | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 895d5c5e931c00..c854755d6d01ae 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -82,16 +82,11 @@ function bad() { bad(); $ env NODE_DEBUG=fs node script.js -fs.js:66 - throw err; - ^ -Error: EISDIR, read - at rethrow (fs.js:61:21) - at maybeCallback (fs.js:79:42) - at Object.fs.readFile (fs.js:153:18) - at bad (/path/to/script.js:2:17) - at Object. (/path/to/script.js:5:1) - +fs.js:88 + throw backtrace; + ^ +Error: EISDIR: illegal operation on a directory, read + ``` ## Buffer API