altosuilib: Remove spurious message about libaltos
authorKeith Packard <keithp@keithp.com>
Thu, 24 Jun 2021 04:35:07 +0000 (21:35 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 24 Jun 2021 04:35:07 +0000 (21:35 -0700)
Wait until we've tried all libaltos options before complaining.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosuilib/AltosUILib.java

index 7553a8ac06bf9a84c2a832be60cb4433bf27fdf9..97a9067a5ee2d7d72033531ccabf85c23deece0e 100644 (file)
@@ -112,10 +112,11 @@ public class AltosUILib extends AltosLib {
                                        loaded_library = true;
                                        break;
                                } catch (UnsatisfiedLinkError e) {
-                                       System.out.printf("Link error %s\n", e.getMessage());
                                        loaded_library = false;
                                }
                        }
+                       if (!loaded_library)
+                               System.out.printf("Cannot find 'libaltos' device access library\n");
 
                        String OS = System.getProperty("os.name");