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

Commit

Permalink
[cli] contextual setup debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
quinlanj committed Apr 15, 2020
1 parent 7904d66 commit efe3901
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion packages/expo-cli/src/commands/build/ios/IOSBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import get from 'lodash/get';
import { XDLError } from '@expo/xdl';

import { Dictionary } from 'lodash';
import terminalLink from 'terminal-link';
import BaseBuilder from '../BaseBuilder';
import { PLATFORMS } from '../constants';
import * as utils from '../utils';
Expand All @@ -17,7 +18,7 @@ import { displayProjectCredentials } from '../../../credentials/actions/list';
import { SetupIosDist } from '../../../credentials/views/SetupIosDist';
import { SetupIosPush } from '../../../credentials/views/SetupIosPush';
import { SetupIosProvisioningProfile } from '../../../credentials/views/SetupIosProvisioningProfile';
import CommandError from '../../../CommandError';
import CommandError, { ErrorCodes } from '../../../CommandError';
import log from '../../../log';

import {
Expand Down Expand Up @@ -123,6 +124,15 @@ 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(
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(
'Failed to prepare all credentials. \nThe next time you build, we will automatically use the following configuration:'
Expand Down

0 comments on commit efe3901

Please sign in to comment.