From aabf7f7b9d5b44ed12c7a71b76cff1f988c81627 Mon Sep 17 00:00:00 2001 From: Vojtech Novak Date: Wed, 17 Nov 2021 03:12:36 -0800 Subject: [PATCH] chore: make CLI error message more descriptive pt2 (#32598) Summary: follow up to https://github.com/facebook/react-native/pull/32593 Changelog: [Internal] [Changed] - chore: make CLI error message more descriptive pt2 Pull Request resolved: https://github.com/facebook/react-native/pull/32598 Reviewed By: feedthejim Differential Revision: D32430833 Pulled By: cortinico fbshipit-source-id: 0930c42f942653e912ffe887ae7fed6cdab8a255 --- .../src/main/kotlin/com/facebook/react/utils/PathUtils.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/utils/PathUtils.kt b/packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/utils/PathUtils.kt index 4a215f22fc3fa0..f94f3658234391 100644 --- a/packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/utils/PathUtils.kt +++ b/packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/utils/PathUtils.kt @@ -93,7 +93,8 @@ private fun detectCliPath( error( "Couldn't determine CLI location. " + - "Please set `project.react.cliPath` to the path of the react-native cli.js") + "Please set `project.react.cliPath` to the path of the react-native cli.js file. " + + "This file typically resides in `node_modules/react-native/cli.js`") } // Make sure not to inspect the Hermes config unless we need it,