You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✗ Your additional module file [readdir.js] does not appear to pass back
an error received from fs.readdir(). Use the following idiomatic Node.js
pattern inside your callback to fs.readdir(): if (err) return
callback(err)
philipp@debian-acer5750g ~/devel/js/fcc/lynode % node program.js madeupdirectory
{ Error: ENOENT: no such file or directory, scandir 'madeupdirectory'
at Error (native)
errno: -2,
code: 'ENOENT',
syscall: 'scandir',
path: 'madeupdirectory' }
Problem
The check seems to fail due to the unexpected order of function parameters (dirname, callback, ext).
I wrote it this way because I thought it might be useful if I can just omit the ext parameter.
When changing the order of parameters to (dirname, ext, callback) the test passes.
I think the code I provided should pass too
The text was updated successfully, but these errors were encountered:
Error output
My Code
Notes
Producing an error manually works as intended
Problem
The check seems to fail due to the unexpected order of function parameters
(dirname, callback, ext)
.I wrote it this way because I thought it might be useful if I can just omit the ext parameter.
When changing the order of parameters to
(dirname, ext, callback)
the test passes.I think the code I provided should pass too
The text was updated successfully, but these errors were encountered: