Skip to content

Commit 5ef4130

Browse files
fix(android): properly set error (#2113)
1 parent abe0d1e commit 5ef4130

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/cli-platform-android/src/commands/runAndroid/runOnAllDevices.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ function createInstallError(error: Error & {stderr: string}) {
140140
guide: 'native',
141141
}),
142142
)} and follow the React Native CLI QuickStart guide to install the compatible version of JDK.`;
143+
} else {
144+
message = error.message;
143145
}
144146

145147
return new CLIError(

0 commit comments

Comments
 (0)