From 49406c108f8cc60169feab5b0bcf491e8a21bfd4 Mon Sep 17 00:00:00 2001 From: Scott González Date: Thu, 4 Oct 2012 11:16:13 -0400 Subject: Build: Throw an Error object instead of a string. --- build/tasks/build.js | 4 ++-- 1 file 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 -- cgit v1.2.3