Skip to content

Commit 75a2630

Browse files
committed
use stderr when no markdown
1 parent 86c6629 commit 75a2630

File tree

1 file changed

+6
-1
lines changed
  • packages/platform-apple-helpers/src/lib/utils

1 file changed

+6
-1
lines changed

packages/platform-apple-helpers/src/lib/utils/pods.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,13 @@ async function runPodInstall(options: {
147147
});
148148
} catch (error) {
149149
loader.stop('Failed: Installing CocoaPods dependencies', 1);
150+
const stderr = (error as SubprocessError).stderr;
150151
const fullOutput = (error as SubprocessError).output;
151-
let errorMessage = fullOutput;
152+
let errorMessage = stderr;
153+
/**
154+
* CocoaPods occasionally provides a markdown template with error message.
155+
* We don't need the part above the Error secion.
156+
*/
152157
if (fullOutput.includes('### Error')) {
153158
errorMessage = fullOutput.split('### Error')[1].trim();
154159
}

0 commit comments

Comments
 (0)