Skip to content

Commit

Permalink
#391 - Minor internals - Ebean catch Throwable on instantiation rathe…
Browse files Browse the repository at this point in the history
…r than RuntimeException
  • Loading branch information
rbygrave committed Aug 19, 2015
1 parent b172a32 commit 46b158a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/avaje/ebean/Ebean.java
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ private ServerManager() {
defaultServer = getWithCreate(defaultName.trim());
}
}
} catch (RuntimeException e) {
} catch (Throwable e) {
logger.error("Error trying to create the default EbeanServer", e);
throw e;
throw new RuntimeException(e);
}
}

Expand Down

0 comments on commit 46b158a

Please sign in to comment.