File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ const processResults = ({ data, errors }) => {
267
267
module . exports = {
268
268
onPostBuild : async ( { constants, utils, inputs } = { } ) => {
269
269
const { failBuild, show } = getUtils ( { utils } ) ;
270
- let extraInfo = [ ] ;
270
+ let errorMetadata = [ ] ;
271
271
272
272
try {
273
273
const { audits } = getConfiguration ( {
@@ -319,7 +319,7 @@ module.exports = {
319
319
errors : allErrors ,
320
320
show,
321
321
} ) ;
322
- extraInfo . push ( ...extraData ) ;
322
+ errorMetadata . push ( ...extraData ) ;
323
323
324
324
if ( error && Object . keys ( error ) . length !== 0 ) {
325
325
throw error ;
@@ -330,10 +330,13 @@ module.exports = {
330
330
if ( error . details ) {
331
331
console . error ( error . details ) ;
332
332
failBuild ( `${ chalk . red ( 'Failed with error:\n' ) } ${ error . message } ` , {
333
- extraInfo ,
333
+ errorMetadata ,
334
334
} ) ;
335
335
} else {
336
- failBuild ( `${ chalk . red ( 'Failed with error:\n' ) } ` , { error, extraInfo } ) ;
336
+ failBuild ( `${ chalk . red ( 'Failed with error:\n' ) } ` , {
337
+ error,
338
+ errorMetadata,
339
+ } ) ;
337
340
}
338
341
}
339
342
} ,
You can’t perform that action at this time.
0 commit comments