Skip to content

Commit bcb5d7e

Browse files
authored
Merge pull request #40 from utPLSQL/bugfix/issue-38-stack-trace
Fix stack trace showing on tests failure
2 parents f71dd6f + 844b86b commit bcb5d7e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>org.utplsql</groupId>
77
<artifactId>utplsql-maven-plugin</artifactId>
8-
<version>3.1.1-SNAPSHOT</version>
8+
<version>3.1.2-SNAPSHOT</version>
99
<packaging>maven-plugin</packaging>
1010

1111
<name>utPLSQL Maven Plugin</name>
@@ -55,7 +55,7 @@
5555
<dependency>
5656
<groupId>org.utplsql</groupId>
5757
<artifactId>java-api</artifactId>
58-
<version>3.1.1</version>
58+
<version>3.1.2</version>
5959
</dependency>
6060

6161
<dependency>

Diff for: src/main/java/org/utplsql/maven/plugin/UtPLSQLMojo.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,10 @@ public void execute() throws MojoExecutionException {
164164
runner.run(connection);
165165

166166
} catch (SomeTestsFailedException e) {
167-
getLog().error(e);
168-
throw new MojoExecutionException(e.getMessage());
167+
if (!this.ignoreFailure) {
168+
throw new MojoExecutionException(e.getMessage(), e);
169+
}
169170
} catch (SQLException e) {
170-
getLog().error(e);
171171
throw new MojoExecutionException(e.getMessage(), e);
172172
} finally {
173173
try {

0 commit comments

Comments
 (0)