Closed freakpol closed 4 years ago
Thanks for reporting @freakpol, will take a look.
Solved. To be included in next release. Now when a resolver returns an incorrect value, a Promise that resolves to an incorrect value or even doesn't return at all, the following error will be thrown:
"Expected resolver for task '<<your task name>>' to return an object or Promise that resolves to object. Returned value is of type '<<type returned>>'."
When a resolver does not have a return
statement
, the following error appears in console, misleading on the proper way to solve the issue: