Fix grunt task to error with an instance of Error, rather than String.
Fixes #88. (Grunt doesn't treat string statuses as failures)