Skip to content

Commit 49406c1

Browse files
committed
Build: Throw an Error object instead of a string.
1 parent f5261f3 commit 49406c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/tasks/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@ grunt.registerTask( "generate_themes", function() {
177177
distFolder = "dist/" + grunt.template.process( grunt.config( "files.dist" ), grunt.config() );
178178
try {
179179
require.resolve( "download.jqueryui.com" );
180-
} catch( e ) {
181-
throw "You need to manually install download.jqueryui.com for this task to work";
180+
} catch( error ) {
181+
throw new Error( "You need to manually install download.jqueryui.com for this task to work" );
182182
}
183183

184184
// copy release files into download builder to avoid cloning again

0 commit comments

Comments
 (0)