Skip to content

Commit

Permalink
Merge pull request #55 from kowczarz/add-message-to-podfile-error
Browse files Browse the repository at this point in the history
Add error message to exit status
  • Loading branch information
nathan-ahn authored Nov 26, 2024
2 parents 4b4f806 + 01e0348 commit 73d9c19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/src/withPodfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ target '${targetName}' do
end
# Running the command in the same manner as \`use_react_native\` then running that result through our cliPlugin
json, _, status = Pod::Executable.capture_command(config_command[0], config_command[1..], capture: :both)
json, message, status = Pod::Executable.capture_command(config_command[0], config_command[1..], capture: :both)
if not status.success?
Pod::UI.warn "The command: '#{config_command.join(" ").bold.yellow}' returned a status code of #{status.exitstatus.to_s.bold.red}", [
Pod::UI.warn "The command: '#{config_command.join(" ").bold.yellow}' returned a status code of #{status.exitstatus.to_s.bold.red}, #{message}", [
"App Clip autolinking failed. Please ensure autolinking works correctly for the main app target and try again.",
]
exit(status.exitstatus)
Expand Down

0 comments on commit 73d9c19

Please sign in to comment.