mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Build: Throw an Error object instead of a string.
This commit is contained in:
parent
f5261f359e
commit
49406c108f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user