From 32b46d91a7677837eded79c0adcd4a31f1be9357 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 91ed9880e8d56c..f3c74d388528ee 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