@@ -223,10 +223,14 @@ public static void load(String originalName, ClassLoader loader) { |
223 | 223 | // Pass "io.netty.native.workdir" as an argument to allow shading tools to see |
224 | 224 | // the string. Since this is printed out to users to tell them what to do next, |
225 | 225 | // we want the value to be correct even when shading. |
226 | | - logger.info("{} exists but cannot be executed even when execute permissions set; " + |
227 | | - "check volume for \"noexec\" flag; use -D{}=[path] " + |
228 | | - "to set native working directory separately.", |
229 | | - tmpFile.getPath(), "io.netty.native.workdir"); |
| 226 | + String message = String.format( |
| 227 | + "%s exists but cannot be executed even when execute permissions set; " + |
| 228 | + "check volume for \"noexec\" flag; use -D%s=[path] " + |
| 229 | + "to set native working directory separately.", |
| 230 | + tmpFile.getPath(), "io.netty.native.workdir"); |
| 231 | + logger.info(message); |
| 232 | + suppressed.add(ThrowableUtil.unknownStackTrace( |
| 233 | + new UnsatisfiedLinkError(message), NativeLibraryLoader.class, "load")); |
230 | 234 | } |
231 | 235 | } catch (Throwable t) { |
232 | 236 | suppressed.add(t); |
@@ -423,7 +427,7 @@ private static void loadLibraryByHelper(final Class<?> helper, final String name |
423 | 427 | @Override |
424 | 428 | public Object run() { |
425 | 429 | try { |
426 | | - // Invoke the helper to load the native library, if succeed, then the native |
| 430 | + // Invoke the helper to load the native library, if it succeeds, then the native |
427 | 431 | // library belong to the specified ClassLoader. |
428 | 432 | Method method = helper.getMethod("loadLibrary", String.class, boolean.class); |
429 | 433 | method.setAccessible(true); |
|