Skip to content

Commit b2abf7d

Browse files
committed
Fixed wrong expression
1 parent 6af044e commit b2abf7d

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎src/main/java/org/utplsql/maven/plugin/UtPLSQLMojo.java‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,11 @@ public void execute() throws MojoExecutionException {
172172
if (StringUtils.isNotBlank(excludeObject)) {
173173
runner.excludeObject(excludeObject);
174174
}
175-
{
175+
if (StringUtils.isNotBlank(includeObject)) {
176176
runner.includeObject(includeObject);
177177
}
178-
if (StringUtils.isNotBlank(includeObject))
179178

180-
runner.run(connection);
179+
runner.run(connection);
181180

182181
} catch (SomeTestsFailedException e) {
183182
if (!this.ignoreFailure) {

‎src/main/java/org/utplsql/maven/plugin/io/ReportWriter.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private void writeReports(Connection connection, Reporter reporter, ReporterPara
108108
buffer.printAvailable(connection, printStreams);
109109

110110
} catch (FileNotFoundException | SQLException e) {
111-
throw new MojoExecutionException("Unexpected error opening file output ", e);
111+
throw new MojoExecutionException(e.getMessage(), e);
112112
} finally {
113113
if (fileOutputStream != null) {
114114
try {

0 commit comments

Comments
 (0)