Release: Abort on packager errors

This commit is contained in:
Michał Gołębiowski-Owczarek 2021-08-06 15:07:00 +02:00
parent 202238b550
commit 03e6c45583

View File

@ -84,17 +84,21 @@ function buildCDNPackage( callback ) {
jqueryUi: jqueryUi,
themeVars: null
} );
packager.ready.then( function() {
packager.ready
.then( function() {
removeExternals( packager );
addManifest( packager );
packager.toZip( target, {
basedir: ""
}, function( error ) {
if ( error ) {
Release.abort( "Failed to zip CDN package", error );
Release.abort( "Failed to zip the CDN package", error );
}
callback();
} );
} )
.catch( function( error ) {
Release.abort( "Failed to create the CDN package", error );
} );
}