File tree Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -84,18 +84,22 @@ function buildCDNPackage( callback ) {
84
84
jqueryUi : jqueryUi ,
85
85
themeVars : null
86
86
} ) ;
87
- packager . ready . then ( function ( ) {
88
- removeExternals ( packager ) ;
89
- addManifest ( packager ) ;
90
- packager . toZip ( target , {
91
- basedir : ""
92
- } , function ( error ) {
93
- if ( error ) {
94
- Release . abort ( "Failed to zip CDN package" , error ) ;
95
- }
96
- callback ( ) ;
87
+ packager . ready
88
+ . then ( function ( ) {
89
+ removeExternals ( packager ) ;
90
+ addManifest ( packager ) ;
91
+ packager . toZip ( target , {
92
+ basedir : ""
93
+ } , function ( error ) {
94
+ if ( error ) {
95
+ Release . abort ( "Failed to zip the CDN package" , error ) ;
96
+ }
97
+ callback ( ) ;
98
+ } ) ;
99
+ } )
100
+ . catch ( function ( error ) {
101
+ Release . abort ( "Failed to create the CDN package" , error ) ;
97
102
} ) ;
98
- } ) ;
99
103
}
100
104
101
105
Release . define ( {
You can’t perform that action at this time.
0 commit comments