From: Scott González Date: Thu, 4 Oct 2012 15:16:13 +0000 (-0400) Subject: Build: Throw an Error object instead of a string. X-Git-Tag: 1.9.0~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=49406c108f8cc60169feab5b0bcf491e8a21bfd4;p=jquery-ui.git Build: Throw an Error object instead of a string. --- diff --git a/build/tasks/build.js b/build/tasks/build.js index 2f191b69a..3f3dd31c5 100644 --- a/build/tasks/build.js +++ b/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