Skip to content

Commit

Permalink
Merge pull request #40 from utPLSQL/bugfix/issue-38-stack-trace
Browse files Browse the repository at this point in the history
Fix stack trace showing on tests failure
  • Loading branch information
viniciusam authored Dec 22, 2018
2 parents f71dd6f + 844b86b commit bcb5d7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.utplsql</groupId>
<artifactId>utplsql-maven-plugin</artifactId>
<version>3.1.1-SNAPSHOT</version>
<version>3.1.2-SNAPSHOT</version>
<packaging>maven-plugin</packaging>

<name>utPLSQL Maven Plugin</name>
Expand Down Expand Up @@ -55,7 +55,7 @@
<dependency>
<groupId>org.utplsql</groupId>
<artifactId>java-api</artifactId>
<version>3.1.1</version>
<version>3.1.2</version>
</dependency>

<dependency>
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/utplsql/maven/plugin/UtPLSQLMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ public void execute() throws MojoExecutionException {
runner.run(connection);

} catch (SomeTestsFailedException e) {
getLog().error(e);
throw new MojoExecutionException(e.getMessage());
if (!this.ignoreFailure) {
throw new MojoExecutionException(e.getMessage(), e);
}
} catch (SQLException e) {
getLog().error(e);
throw new MojoExecutionException(e.getMessage(), e);
} finally {
try {
Expand Down

0 comments on commit bcb5d7e

Please sign in to comment.