Skip to content

Commit

Permalink
Need to print the exception message to give more information
Browse files Browse the repository at this point in the history
If running on a system that does not have the required glibc
version then important information is lost to tell the user
what is wrong. For example:

version 'GLIBC_2.34' not found (required by .../libswt-pi3-gtk-4966r6.so)
  • Loading branch information
tjwatson authored and akurtakov committed Sep 4, 2024
1 parent d882cfb commit da4cb1f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,15 @@ public class OS extends C {
try {
Library.loadLibrary("swt-pi4");
} catch (Throwable e) {
System.err.println(e.getMessage());
System.err.println("SWT OS.java Error: Failed to load swt-pi4, loading swt-pi3 as fallback.");
Library.loadLibrary("swt-pi3");
}
} else {
try {
Library.loadLibrary("swt-pi3");
} catch (Throwable e) {
System.err.println(e.getMessage());
System.err.println("SWT OS.java Error: Failed to load swt-pi3, loading swt-pi4 as fallback.");
Library.loadLibrary("swt-pi4");
}
Expand Down

0 comments on commit da4cb1f

Please sign in to comment.