Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
Make code review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
brentvatne committed Apr 16, 2020
1 parent 2a43490 commit ba0b6df
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions packages/expo-cli/src/commands/build/ios/IOSBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,24 +125,37 @@ See https://docs.expo.io/versions/latest/distribution/building-standalone-apps/#
await this.produceCredentials(context, experienceName, bundleIdentifier);
} catch (e) {
if (e.code === ErrorCodes.NON_INTERACTIVE) {
const here = terminalLink('here', 'https://expo.fyi/credentials-non-interactive');
log.newLine();
const link = terminalLink(
'expo.fyi/credentials-non-interactive',
'https://expo.fyi/credentials-non-interactive'
);
log(
chalk.bold.red(
`Additional information needed to setup credentials in non-interactive mode.`
)
);
log(chalk.bold.red(`Learn more about how to resolve this ${here}.`));
log(chalk.bold.red(`Learn more about how to resolve this: ${link}.`));
log.newLine();

// We don't want to display project credentials when we bail out due to
// non-interactive mode error, because we are unable to recover without
// user input.
throw new CommandError(
ErrorCodes.NON_INTERACTIVE,
'Unable to proceed, see the above error message.'
);
} else {
log(
chalk.bold.red(
'Failed to prepare all credentials. \nThe next time you build, we will automatically use the following configuration:'
)
);
}
log(
chalk.bold.red(
'Failed to prepare all credentials. \nThe next time you build, we will automatically use the following configuration:'
)
);
throw e;
} finally {
const credentials = await context.ios.getAllCredentials();
displayProjectCredentials(experienceName, bundleIdentifier, credentials);
}

const credentials = await context.ios.getAllCredentials();
displayProjectCredentials(experienceName, bundleIdentifier, credentials);
}

async produceCredentials(ctx: Context, experienceName: string, bundleIdentifier: string) {
Expand Down

0 comments on commit ba0b6df

Please sign in to comment.