Build: Throw an Error object instead of a string.

This commit is contained in:
Scott González 2012-10-04 11:16:13 -04:00
parent f5261f359e
commit 49406c108f

View File

@ -177,8 +177,8 @@ grunt.registerTask( "generate_themes", function() {
distFolder = "dist/" + grunt.template.process( grunt.config( "files.dist" ), grunt.config() );
try {
require.resolve( "download.jqueryui.com" );
} catch( e ) {
throw "You need to manually install download.jqueryui.com for this task to work";
} catch( error ) {
throw new Error( "You need to manually install download.jqueryui.com for this task to work" );
}
// copy release files into download builder to avoid cloning again