From 54b57a559ea88f6c442f61aed26f5f5f426813ee Mon Sep 17 00:00:00 2001 From: Todor Totev Date: Tue, 8 Sep 2015 18:17:59 +0300 Subject: [PATCH] Make gradle error more user friendly --- lib/services/android-project-service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/services/android-project-service.ts b/lib/services/android-project-service.ts index f6f13aa844..66dac5a48a 100644 --- a/lib/services/android-project-service.ts +++ b/lib/services/android-project-service.ts @@ -80,7 +80,7 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService return (() => { let frameworkVersion = this.$fs.readJson(path.join(frameworkDir, "../", "package.json")).wait().version; if(semver.lt(frameworkVersion, AndroidProjectService.MIN_RUNTIME_VERSION_WITH_GRADLE)) { - this.$errors.fail(`The NativeScript CLI requires Android runtime ${AndroidProjectService.MIN_RUNTIME_VERSION_WITH_GRADLE} or later to work properly.`); + this.$errors.failWithoutHelp(`The NativeScript CLI requires Android runtime ${AndroidProjectService.MIN_RUNTIME_VERSION_WITH_GRADLE} or later to work properly.`); } // TODO: Move these check to validate method once we do not support ant. @@ -390,7 +390,7 @@ class AndroidProjectService extends projectServiceBaseLib.PlatformProjectService private checkGradle(): IFuture { return (() => { if(!this.$sysInfo.getSysInfo().gradleVer) { - this.$errors.fail("Error executing commands 'gradle', make sure you have gradle installed and added to your PATH."); + this.$errors.failWithoutHelp("Error executing commands 'gradle'. Make sure you have Gradle installed and its bin directory added to your PATH."); } this.$androidToolsInfo.validateInfo({showWarningsAsErrors: true, validateTargetSdk: true}).wait();