Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions packages/platform-android/src/commands/runAndroid/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import {
isPackagerRunning,
logger,
getDefaultUserTerminal,
CLIError,
} from '@react-native-community/cli-tools';

// Verifies this is an Android project
Expand Down Expand Up @@ -149,8 +150,11 @@ function buildApk(gradlew) {
execFileSync(gradlew, ['build', '-x', 'lint'], {
stdio: [process.stdin, process.stdout, process.stderr],
});
} catch (e) {
logger.error('Could not build the app, read the error above for details.');
} catch (error) {
throw new CLIError(
'Could not build the app, read the error above for details',
error,
);
}
}

Expand Down