Skip to content

Commit

Permalink
Added back in attempted invocation of a step's logic function in Sequ…
Browse files Browse the repository at this point in the history
…ence#checkSteps, so that an Error is thrown at startup for non-defined step logic.
  • Loading branch information
bnoguchi committed Apr 7, 2011
1 parent b5036de commit bd415a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/sequence.js
Expand Up @@ -130,6 +130,11 @@ MaterializedSequence.prototype = {
throw new Error('At step, ' + step.name + ', you are trying to access the parameters: ' + missingParams.join(', ') + ' . However, only the following parameters have been promised from prior steps thus far: ' + paramsToDate.join(', '));

paramsToDate = paramsToDate.concat(step.promises);

if ('undefined' === typeof this.module[step.name]())
// TODO Remove this Error, since invoking the arg to typeof (see line above)
// already throws an Error
throw new Error('No one defined the function for the following step: ' + step.name);
}
}
};
Expand Down

0 comments on commit bd415a9

Please sign in to comment.