Skip to content

Commit e5bb595

Browse files
committed
rename extraInfo to errorMetadata
1 parent 7239507 commit e5bb595

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/index.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ const processResults = ({ data, errors }) => {
267267
module.exports = {
268268
onPostBuild: async ({ constants, utils, inputs } = {}) => {
269269
const { failBuild, show } = getUtils({ utils });
270-
let extraInfo = [];
270+
let errorMetadata = [];
271271

272272
try {
273273
const { audits } = getConfiguration({
@@ -319,7 +319,7 @@ module.exports = {
319319
errors: allErrors,
320320
show,
321321
});
322-
extraInfo.push(...extraData);
322+
errorMetadata.push(...extraData);
323323

324324
if (error && Object.keys(error).length !== 0) {
325325
throw error;
@@ -330,10 +330,13 @@ module.exports = {
330330
if (error.details) {
331331
console.error(error.details);
332332
failBuild(`${chalk.red('Failed with error:\n')}${error.message}`, {
333-
extraInfo,
333+
errorMetadata,
334334
});
335335
} else {
336-
failBuild(`${chalk.red('Failed with error:\n')}`, { error, extraInfo });
336+
failBuild(`${chalk.red('Failed with error:\n')}`, {
337+
error,
338+
errorMetadata,
339+
});
337340
}
338341
}
339342
},

0 commit comments

Comments
 (0)