Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return stream.catch(async (error) => {
if (strict) {
try { await parent.raise(error); } finally {}
} else {
log.verbose(`Ignoring error in "${sourceObject.name}": ${error.message}`);
failures[error.message] = (failures[error.message] || 0) + 1;
}
return DataStream.filter;
});
}