Skip to content

Commit

Permalink
fix: Display correct error when config file does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
islandryu committed May 17, 2024
1 parent 21a82d4 commit 63ebe86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/cli/src/commands/init/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,9 @@ async function createFromTemplate({
loader.succeed('Dependencies installation skipped');
}
} catch (e) {
if (e instanceof Error) {
if (e instanceof CLIError) {
logger.error(e.message);
} else if (e instanceof Error) {
logger.error(
'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',
);
Expand Down

0 comments on commit 63ebe86

Please sign in to comment.