Force an exit if authentication failed!

This commit is contained in:
Godzil
2018-07-14 20:41:49 +01:00
parent 523c780b18
commit 987e424324

View File

@@ -187,7 +187,8 @@ function authenticate(config: IConfig, done: (err: Error) => void)
if (isAuthenticated === false)
{
const error = $('ul.message, li.error').text();
return done(new Error('Authentication failed: ' + error));
log.error('Authentication failed: ' + error);
process.exit(-1);
}
if (isPremium === false)