diff --git a/doc/api/fs.md b/doc/api/fs.md index 93744100057c57..9f9db8c5e75cc7 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -1175,6 +1175,7 @@ fs.open('myfile', 'wx', (err, fd) => { fs.exists('myfile', (exists) => { if (exists) { fs.open('myfile', 'r', (err, fd) => { + if (err) throw err; readMyData(fd); }); } else {