Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
}
config.set('lastError', null);
config.set('lastEventId', null);
return;
}
Sentry.init({ dsn: process.env.SENTRY_DSN });
try {
const system = getSystemInfos();
const user = getUserInfo();
Sentry.setExtras(system);
Sentry.setUser(user);
Sentry.setTags({
OS: system.PLATFORM.OS === 'darwin' ? system.PLATFORM.RELEASE : system.PLATFORM.OS,
version: system.CLIENT_VERSION,
});
} catch (e) {
errorHandler(e);
}
dns.lookup('api.unsplash.com', (error) => {
if (error && error.code === 'ENOTFOUND') {
Sentry.captureMessage('No Internet Connection', Sentry.Severity.Warning);
console.error(chalk.red('\n Please check your internet connection.\n'));
process.exit(1);
}