]> source.dussan.org Git - jquery-ui.git/commitdiff
Build: Throw an Error object instead of a string.
authorScott González <scott.gonzalez@gmail.com>
Thu, 4 Oct 2012 15:16:13 +0000 (11:16 -0400)
committerScott González <scott.gonzalez@gmail.com>
Thu, 4 Oct 2012 15:16:13 +0000 (11:16 -0400)
build/tasks/build.js

index 2f191b69a323cfd9ad3701249cba6d95b31727ea..3f3dd31c55c12bc1718119c83002d7ef5fdd3c64 100644 (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