Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
message: originalError.message,
stack: originalError.stack,
errorType: originalError.type || 'Build Error',
codeFrame: originalError.codeFrame || originalError.message,
location: location || {},
};
}
if (!broccoliPayload.broccoliNode) {
broccoliPayload.broccoliNode = {
nodeName: broccoliPayload.nodeName,
nodeAnnotation: broccoliPayload.nodeAnnotation,
instantiationStack: broccoliPayload.instantiationStack || '',
};
}
if (!broccoliPayload.versions) {
let builderVersion = this.broccoli2 ? require('broccoli/package').version : require('broccoli-builder/package').version;
broccoliPayload.versions = {
'broccoli-builder': builderVersion,
node: process.version,
};
}
}
throw err;
}
}