Skip to content

Commit 02fbc87

Browse files
More verbose error message for git.build.host property in case of exception
1 parent df27e70 commit 02fbc87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/pl/project13/maven/git/GitCommitIdMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ void loadBuildHostData(@NotNull Properties properties) {
481481
try {
482482
buildHost = InetAddress.getLocalHost().getHostName();
483483
} catch (UnknownHostException e) {
484-
log("Unable to get build host");
484+
log("Unable to get build host, skipping property " + BUILD_HOST + ". Error message was: " + e.getMessage());
485485
}
486486
put(properties, BUILD_HOST, buildHost);
487487
}

0 commit comments

Comments
 (0)