Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Commit

Permalink
don't fucking crash now
Browse files Browse the repository at this point in the history
  • Loading branch information
natanbc committed Jul 30, 2019
1 parent 7b4446b commit 3019249
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
id 'com.palantir.docker' version '0.22.1'
}

def versionObj = new Version(major: 0, minor: 18, revision: 4)
def versionObj = new Version(major: 0, minor: 18, revision: 5)

sourceCompatibility = 11
targetCompatibility = 11
Expand Down
8 changes: 6 additions & 2 deletions src/main/java/andesite/node/Andesite.java
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,12 @@ private static void configureYt(@Nonnull AudioPlayerManager manager, @Nonnull Co
public static void main(String[] args) throws IOException {
try {
log.info("System info: {}", NativeLibLoader.loadSystemInfo());
} catch(UnsatisfiedLinkError e) {
log.warn("Unable to load system info. This is not an error", e);
} catch(Throwable t) {
String message = "Unable to load system info.";
if(t instanceof UnsatisfiedLinkError || (t instanceof RuntimeException && t.getCause() instanceof UnsatisfiedLinkError)) {
message += " This is not an error.";
}
log.warn(message, t);
}
log.info("Starting andesite version {}, commit {}", Version.VERSION, Version.COMMIT);

Expand Down

0 comments on commit 3019249

Please sign in to comment.