Skip to content

Commit 315dc0a

Browse files
committed
feat: output raw error on pods failing to install in debug
Useful to see the error message instead of swallowing it if the user enables `--verbose`.
1 parent 1cc27e6 commit 315dc0a

File tree

1 file changed

+2
-2
lines changed
  • packages/cli/src/commands/init

1 file changed

+2
-2
lines changed

packages/cli/src/commands/init/init.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,19 +337,19 @@ async function createFromTemplate({
337337
loader.succeed('Dependencies installation skipped');
338338
}
339339
} catch (e) {
340+
loader.fail();
340341
if (e instanceof Error) {
341342
logger.error(
342343
'Installing pods failed. This doesn\'t affect project initialization and you can safely proceed. \nHowever, you will need to install pods manually when running iOS, follow additional steps in "Run instructions for iOS" section.\n',
343344
);
345+
logger.debug(e as any);
344346
}
345-
loader.fail();
346347
didInstallPods = false;
347348
} finally {
348349
fs.removeSync(templateSourceDir);
349350
}
350351

351352
if (process.platform === 'darwin') {
352-
logger.log('\n');
353353
logger.info(
354354
`💡 To enable automatic CocoaPods installation when building for iOS you can create react-native.config.js with automaticPodsInstallation field. \n${chalk.reset.dim(
355355
`For more details, see ${chalk.underline(

0 commit comments

Comments
 (0)