From 01e0348a9ee8a9109270ad7d708496c5d66783f2 Mon Sep 17 00:00:00 2001 From: Kamil Owczarz <91068263+kowczarz@users.noreply.github.com> Date: Tue, 26 Nov 2024 17:08:11 +0100 Subject: [PATCH] Add error message to exit status --- plugin/src/withPodfile.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/withPodfile.ts b/plugin/src/withPodfile.ts index 128cfcf..02ca33c 100644 --- a/plugin/src/withPodfile.ts +++ b/plugin/src/withPodfile.ts @@ -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)