Skip to content

Commit

Permalink
Try adding stdout and stderr to see what's going wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-carroll committed Jan 4, 2025
1 parent 1c5f28a commit 86ccde0
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,17 @@ class Xcrun {
print("Shell command exit code: ${result.exitCode}");

if (result.exitCode != 0) {
throw Exception("Failed to execute command in a shell:\n'$command'\nExit code: ${result.exitCode}");
throw Exception('''
Failed to execute command in a shell:
'$command'
Exit code: ${result.exitCode}
Stdout:
${result.stdout}
Stderr:
${result.stderr}''');
}

return result;
Expand Down

0 comments on commit 86ccde0

Please sign in to comment.