jeffbski/react — Issue #6: provide better error message if after refers to missing task
Author: jeffbski
Created: 2012-02-27 21:13:25+00:00
State: open

If an after condition is specified and the task with that name is not found, provide a better error message.

This can happen if a task was originally specified with a named function and then later changed to an anonymous function.

Like

function foo() {
}

is later changed to

var foo = function () { }

and there is a task which uses after: 'foo'

Current error message will say cannot call isComplete on undefined.