Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// If something went wrong loading data sources, log it, tidy up, and die.
console.error(error);
await cleanUpTempDir();
process.exit(2); // eslint-disable-line no-process-exit
}
}
startGateway({
mock,
gateway,
dataSourcePaths,
loadedDataSources,
});
};
cleanup(cleanupOnExit);