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
Step explicitly only supports node style callbacks where it's (err, value). For some reason path.exists is an inconsistency in node that doesn't follow it's own pattern. You can wrap it in a new function that follows the pattern and use that wrapped function.
function pathExists(path, callback) {
Path.exists(path, function (exists) {
callback(null, exists);
});
}
I recently tried using Step with path.exists, which doesn't pass an
error
argument as the first argument to the callback. Here's the script I tested:This should output
null
(or some other falsy value) for error, and an array containingfalse
:[false, false, false, false]
. Instead, we get:I don't think this is a version compatibility issue, but for good measure, I'm running Step 0.0.4, node 0.4.1 on Ubuntu 10.10.
The text was updated successfully, but these errors were encountered: