Skip to content

Commit

Permalink
πŸ› Do not crash when missing credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
rsauget committed Dec 31, 2021
1 parent 8f014d5 commit 1c69455
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/flexomPlatform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ export function createFlexomPlatform({
logger.debug(`Finished initializing platform: ${config.name}`);

api.on('didFinishLaunching', async () => {
if (_.isEmpty(config.email) || _.isEmpty(config.password)) {
logger.warn('Flexom email and password are required');
return;
}

logger.debug('didFinishLaunching');
const flexom = await Flexom.createClient({
email: config.email,
Expand Down

0 comments on commit 1c69455

Please sign in to comment.