Skip to content

Commit

Permalink
Slightly improved error message during probes creation
Browse files Browse the repository at this point in the history
  • Loading branch information
fbacchella committed Sep 1, 2016
1 parent b546dd5 commit f13bc79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jrds/starter/ConnectionInfo.java
Expand Up @@ -58,7 +58,8 @@ public void register(StarterNode node) throws InvocationTargetException {
node.registerStarter(cnx);
logger.debug(Util.delayedFormatString("Connexion registred: %s for %s", cnx, node));
} catch (InvocationTargetException ex) {
throw new InvocationTargetException(ex.getCause(), "Error during connection creation of type " + type.getName() + " for " + node + ": " + ex.getMessage());
String message = ex.getCause() != null ? ex.getCause().getMessage(): ex.getMessage();
throw new InvocationTargetException(ex.getCause(), "Error during connection creation of type " + type.getName() + " for " + node + ": " + message);
} catch (Exception ex) {
throw new InvocationTargetException(ex, "Error during connection creation of type " + type.getName() + " for " + node);
}
Expand Down

0 comments on commit f13bc79

Please sign in to comment.