Skip to content
Permalink
Browse files

Build: Throw an Error object instead of a string.

  • Loading branch information...
scottgonzalez committed Oct 4, 2012
1 parent f5261f3 commit 49406c108f8cc60169feab5b0bcf491e8a21bfd4
Showing with 2 additions and 2 deletions.
  1. +2 −2 build/tasks/build.js
@@ -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

1 comment on commit 49406c1

@jzaefferer

This comment has been minimized.

Copy link
Member

commented on 49406c1 Oct 4, 2012

Woops :-)

Please sign in to comment.
You can’t perform that action at this time.