Skip to content

Commit

Permalink
Merge pull request #31 from ivanstefko/error-handling-improvements
Browse files Browse the repository at this point in the history
Error handling improvements
  • Loading branch information
frekele committed Feb 21, 2018
2 parents 2fac927 + 3f630c3 commit 800c239
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/hudson/plugins/deploy/DeployPublisher.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ public void perform(@Nonnull Run<?, ?> run, @Nonnull FilePath workspace, @Nonnul
String expandedVar = Util.replaceMacro(war, environment);
FilePath[] wars = workspace.list(expandedVar);
if (wars == null || wars.length == 0) {
listener.getLogger().printf("[DeployPublisher][WARN] No wars found. Deploy aborted. %n");
return;
throw new InterruptedException("[DeployPublisher][WARN] No wars found. Deploy aborted. %n");
}
listener.getLogger().printf("[DeployPublisher][INFO] Attempting to deploy %d war file(s)%n", wars.length);

Expand Down

0 comments on commit 800c239

Please sign in to comment.