From 36e7b5efae7fad9fbee15132a3cfd08ce891acfb Mon Sep 17 00:00:00 2001 From: Zvi Grinberg Date: Thu, 18 Apr 2024 14:38:34 +0300 Subject: [PATCH] fix: add for errors returned from invoking gradle commands the error message returned from binary Signed-off-by: Zvi Grinberg --- src/providers/java_gradle.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/providers/java_gradle.js b/src/providers/java_gradle.js index 721aebb..7ab1488 100644 --- a/src/providers/java_gradle.js +++ b/src/providers/java_gradle.js @@ -129,7 +129,7 @@ export default class Java_gradle extends Base_java { try { properties = this._invokeCommandGetOutput(`${gradle} properties`, path.dirname(manifestPath)) } catch (e) { - throw new Error(`Couldn't get properties of build.gradle file`) + throw new Error(`Couldn't get properties of build.gradle file , Error message returned from gradle binary => ${EOL} ${e.getMessage}`) } return properties.toString() } @@ -173,7 +173,7 @@ export default class Java_gradle extends Base_java { try { commandResult = this._invokeCommandGetOutput(`${gradle} dependencies`,path.dirname(manifest)) } catch (e) { - throw new Error(`Couldn't run gradle dependencies command`) + throw new Error(`Couldn't run gradle dependencies command, error message returned from gradle binary => ${EOL} ${e.getMessage}`) } return commandResult.toString() }