neoforged / GradleUtils

Gradle buildscript utility library for NeoForged projects
GNU Lesser General Public License v2.1
1 stars 5 forks source link

Improve the error message when there are no Git tags #13

Closed shartte closed 8 months ago

shartte commented 8 months ago

Previous error message:

Caused by: java.lang.NullPointerException: Cannot invoke "java.util.List.size()" because "self" is null

New error message:

Caused by: org.gradle.api.GradleException: Cannot calculate the project version without a previous Git tag. Did you forget to run "git fetch --tags"?
Technici4n commented 8 months ago

Note that you have a merge conflict.

shartte commented 8 months ago

Huh my fork was outdated and I didn't notice

shartte commented 8 months ago

Fixed