Skip to content

Commit

Permalink
Fixed: The wrong message appears while committing the code, if Lint/S…
Browse files Browse the repository at this point in the history
…tatic analysis has failed.

* Refactored the error message to show the correct information to the developers, since our projects needs JDK11 to run so we have added this JDK version in error message. Also, corrected the gradle wrapper version in this message.
  • Loading branch information
MohitMaliDeveloper authored and kelson42 committed Apr 4, 2024
1 parent 18f7876 commit 61f87f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions team-props/git-hooks/pre-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ else
echo 1>&2 "Static analysis found violations and attempted to autofix, please commit these autoformat changes"
echo "
---------------------------IMPORTANT FOR KIWIX DEVELOPERS----------------------------------------------
If the build failed with '.../.gradle/daemon/5.6.1/custom/scr/customexample/info.json No File Found' then you do not have JAVA_HOME set to JDK8
Please make sure JAVA_HOME is set to JDK8
If the build failed with '.../.gradle/daemon/8.0/custom/scr/customexample/info.json No File Found' then you do not have JAVA_HOME set to JDK11
Please make sure JAVA_HOME is set to JDK11
---------------------------IMPORTANT FOR KIWIX DEVELOPERS----------------------------------------------"

exit 1
Expand Down

0 comments on commit 61f87f1

Please sign in to comment.