Closed tofutim closed 7 years ago
in your example you have console.log(err) in the callback from writeFile, but maybe it should be
if (err) throw err; ?
Logging the error is perfectly fine for examples. Throwing an error in an async callback is a terrible practice.
in your example you have console.log(err) in the callback from writeFile, but maybe it should be
if (err) throw err; ?