Skip to content

Commit

Permalink
Merge pull request #291 from joval/master
Browse files Browse the repository at this point in the history
Two minor changes
  • Loading branch information
hierynomus authored Dec 21, 2016
2 parents cdca43a + 9e3b9f7 commit b6f437a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/net/schmizz/sshj/DefaultConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public DefaultConfig() {
private String readVersionFromProperties() {
try {
Properties properties = new Properties();
properties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("sshj.properties"));
properties.load(DefaultConfig.class.getClassLoader().getResourceAsStream("sshj.properties"));
String property = properties.getProperty("sshj.version");
return "SSHJ_" + property.replace('-', '_'); // '-' is a disallowed character, see RFC-4253#section-4.2
} catch (IOException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public SSHRuntimeException(String message, Throwable cause) {
}

public SSHRuntimeException(Throwable cause) {
this(null, cause);
this(cause.getMessage(), cause);
}

}

0 comments on commit b6f437a

Please sign in to comment.