You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2025/08/16 11:00:46 UTC
(maven-scm) branch utils created (now 8a3f0329c)
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a change to branch utils
in repository https://gitbox.apache.org/repos/asf/maven-scm.git
at 8a3f0329c Throw is enough
This branch includes the following new commits:
new 8a3f0329c Throw is enough
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(maven-scm) 01/01: Throw is enough
Posted by el...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a commit to branch utils
in repository https://gitbox.apache.org/repos/asf/maven-scm.git
commit 8a3f0329cdf096bb0a71e6eea3057a2cb05d30cf
Author: Elliotte Rusty Harold <el...@ibiblio.org>
AuthorDate: Sat Aug 16 07:00:34 2025 -0400
Throw is enough
---
.../java/org/apache/maven/scm/plugin/CheckLocalModificationsMojo.java | 1 -
maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/TagMojo.java | 1 -
2 files changed, 2 deletions(-)
diff --git a/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/CheckLocalModificationsMojo.java b/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/CheckLocalModificationsMojo.java
index 1e22fac0d..36fe9378f 100644
--- a/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/CheckLocalModificationsMojo.java
+++ b/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/CheckLocalModificationsMojo.java
@@ -81,7 +81,6 @@ public void execute() throws MojoExecutionException {
}
if (!result.getChangedFiles().isEmpty()) {
- getLog().error(errorMessage);
throw new MojoExecutionException(errorMessage);
}
}
diff --git a/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/TagMojo.java b/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/TagMojo.java
index 622ce3856..eaeb41ea9 100644
--- a/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/TagMojo.java
+++ b/maven-scm-plugin/src/main/java/org/apache/maven/scm/plugin/TagMojo.java
@@ -140,7 +140,6 @@ public void execute() throws MojoExecutionException {
getLog().info("Using timestamp '" + tagTimestamp + "'");
} catch (IllegalArgumentException e) {
String msg = "The timestamp format '" + timestampFormat + "' is invalid.";
- getLog().error(msg, e);
throw new MojoExecutionException(msg, e);
}