Closed richdefies closed 9 years ago
Try adding the following in your main.js:
if (err)
console.log(err);
Tried that -- still not working. I attended a workshop last night focused on learnyounode and the mentor there said that with all the tests passing green, he determined it was a bug on the Workshopper side and to move on to the other challenges. Happy to help debug if any other suggestions!
One note is I'm on Node 5.0...
The error occurs with rimraf
. I am not quite sure why it occurs (obviously removing the folder seems to result in an error) but i just publish a fix that ignores this particular error and published a new learnyounode
workshopper. Would you mind testing it with that?
@martinheidegger Aha, that did it. So when I put in your fix and ran the verification, it returned:
✗ Your additional module file [filteredls.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)
✓ Additional module file handles errors properly
So, I noticed my module file had callback(err)
and not return callback(err)
. I made that change and now the challenge completed. All of them down!
Thanks.
Can anyone help? I've looked at issues here and even though there are a lot of reports around this exercise, none seem to match the problem. I'm getting no errors from the verify program other than "error cleaning up: testing" and the actual/expected results match.
Thanks!
main.js:
filteredls.js: