We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d83b98 commit efad69fCopy full SHA for efad69f
1 file changed
lib/external-resources/resource.js
@@ -151,17 +151,18 @@ export default class ExternalResource extends Events {
151
await this.#createResourceDir();
152
153
// unpack
154
- res = await stream.promises
155
- .pipeline(
156
- stream.Readable.fromWeb( res.body ),
157
- tar.extract( {
158
- "cwd": this.#location,
159
- } )
160
- )
161
- .then( () => result( 200 ) )
162
- .catch( e => result.catch( e ) );
+ await stream.promises.pipeline(
+ stream.Readable.fromWeb( res.body ),
+ tar.extract( {
+ "cwd": this.#location,
+ } )
+ );
+
+ res = result( 200 );
+ }
163
+ catch ( e ) {
164
+ res = result.catch( e, { "log": false } );
165
}
- catch {}
166
167
// update failed
168
if ( !res.ok ) {
0 commit comments