show UnsatisfyingLinkError message to the user - it is more precise

This commit is contained in:
Anton Keks 2017-01-26 22:17:45 +02:00
parent e515790818
commit f8d0010f08

View File

@ -94,7 +94,7 @@ public class Main {
display.dispose();
}
catch (UnsatisfiedLinkError e) {
JOptionPane.showMessageDialog(null, "Failed to load native code. Probably you are using a binary built for wrong OS or CPU. If 64-bit binary doesn't work for you, try 32-bit version, or vice versa.");
JOptionPane.showMessageDialog(null, "Failed to load native code: " + e.getMessage() + "\nProbably you are using a binary built for wrong OS or CPU. If 64-bit binary doesn't work for you, try 32-bit version, or vice versa.");
e.printStackTrace();
new GoogleAnalytics().report(e);
}