mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Release: Abort on packager errors
This commit is contained in:
parent
202238b550
commit
03e6c45583
@ -84,18 +84,22 @@ function buildCDNPackage( callback ) {
|
||||
jqueryUi: jqueryUi,
|
||||
themeVars: null
|
||||
} );
|
||||
packager.ready.then( function() {
|
||||
removeExternals( packager );
|
||||
addManifest( packager );
|
||||
packager.toZip( target, {
|
||||
basedir: ""
|
||||
}, function( error ) {
|
||||
if ( error ) {
|
||||
Release.abort( "Failed to zip CDN package", error );
|
||||
}
|
||||
callback();
|
||||
packager.ready
|
||||
.then( function() {
|
||||
removeExternals( packager );
|
||||
addManifest( packager );
|
||||
packager.toZip( target, {
|
||||
basedir: ""
|
||||
}, function( error ) {
|
||||
if ( error ) {
|
||||
Release.abort( "Failed to zip the CDN package", error );
|
||||
}
|
||||
callback();
|
||||
} );
|
||||
} )
|
||||
.catch( function( error ) {
|
||||
Release.abort( "Failed to create the CDN package", error );
|
||||
} );
|
||||
} );
|
||||
}
|
||||
|
||||
Release.define( {
|
||||
|
Loading…
Reference in New Issue
Block a user