Skip to content

Commit

Permalink
[JENKINS-38344] Rethrow Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenc committed Sep 21, 2016
1 parent a208126 commit c3d6469
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/org/jenkinsci/remoting/protocol/IOHub.java
Expand Up @@ -701,6 +701,9 @@ public void run() {
record.setParameters(new Object[]{workerThread.getName(), listener, e.getClass().getSimpleName()});
LOGGER.log(record);
}
if (e instanceof Error) {
throw (Error)e;
}
} finally {
workerThread.setName(oldName);
}
Expand Down
Expand Up @@ -294,6 +294,9 @@ public void run() {
record.setParameters(new Object[]{stack().name(), e.getClass().getSimpleName()});
LOGGER.log(record);
}
if (e instanceof Error) {
throw (Error) e;
}
} finally {
synchronized (BIONetworkLayer.this) {
running = false;
Expand Down

0 comments on commit c3d6469

Please sign in to comment.