Skip to content

Commit 86ccde0

Browse files
Try adding stdout and stderr to see what's going wrong
1 parent 1c5f28a commit 86ccde0

File tree

1 file changed

+11
-1
lines changed
  • packages/flutter_test_runners/lib/src/platform_comms/ios

1 file changed

+11
-1
lines changed

packages/flutter_test_runners/lib/src/platform_comms/ios/xcrun.dart

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,17 @@ class Xcrun {
190190
print("Shell command exit code: ${result.exitCode}");
191191

192192
if (result.exitCode != 0) {
193-
throw Exception("Failed to execute command in a shell:\n'$command'\nExit code: ${result.exitCode}");
193+
throw Exception('''
194+
Failed to execute command in a shell:
195+
'$command'
196+
197+
Exit code: ${result.exitCode}
198+
199+
Stdout:
200+
${result.stdout}
201+
202+
Stderr:
203+
${result.stderr}''');
194204
}
195205

196206
return result;

0 commit comments

Comments
 (0)