aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2021-08-06 15:07:00 +0200
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2021-08-06 15:07:00 +0200
commit03e6c45583d0130b2640bd6383448af76598451b (patch)
treeeed372aa0a2c31e8f640f3de5437e82c1b3ea7a6
parent202238b5501adcff5a9eb3be7404e072bd6f97c6 (diff)
downloadjquery-ui-03e6c45583d0130b2640bd6383448af76598451b.tar.gz
jquery-ui-03e6c45583d0130b2640bd6383448af76598451b.zip
Release: Abort on packager errors
-rw-r--r--build/release.js26
1 files changed, 15 insertions, 11 deletions
diff --git a/build/release.js b/build/release.js
index 0bc7f88c1..a870afb92 100644
--- a/build/release.js
+++ b/build/release.js
@@ -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( {