Skip to content

Commit

Permalink
v1.0.2: make fibers not swallowing the unchecked exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Kurilov committed Jul 31, 2018
1 parent e83c12e commit 7a42c98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ allprojects {
apply plugin: "maven"
apply plugin: "signing"
group = "com.github.akurilov"
version = "1.0.1"
version = "1.0.2"
}

ext.moduleName = "${group}.fiber4j"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ public final void run() {
if(nextFiber.isStarted()) {
nextFiber.invoke();
}
} catch(final RuntimeException e) {
throw e; // don't catch the unchecked exceptions
} catch(final Throwable t) {
LOG.log(Level.WARNING, "Fiber \"" + nextFiber + "\" failed", t);
}
Expand Down

0 comments on commit 7a42c98

Please sign in to comment.