diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-10-04 11:16:13 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-10-04 11:16:13 -0400 |
commit | 49406c108f8cc60169feab5b0bcf491e8a21bfd4 (patch) | |
tree | e50ede3bea79284eb6f518aff94677fc2543eaf8 /build | |
parent | f5261f359e8cad8f525f6a36c113b7058e533c71 (diff) | |
download | jquery-ui-49406c108f8cc60169feab5b0bcf491e8a21bfd4.tar.gz jquery-ui-49406c108f8cc60169feab5b0bcf491e8a21bfd4.zip |
Build: Throw an Error object instead of a string.
Diffstat (limited to 'build')
-rw-r--r-- | build/tasks/build.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 |