diff --git a/packer/src/main/java/com/reajason/javaweb/packer/jar/attach/Attacher.java b/packer/src/main/java/com/reajason/javaweb/packer/jar/attach/Attacher.java index 8fc883ef..3729bbca 100644 --- a/packer/src/main/java/com/reajason/javaweb/packer/jar/attach/Attacher.java +++ b/packer/src/main/java/com/reajason/javaweb/packer/jar/attach/Attacher.java @@ -57,7 +57,17 @@ public class Attacher { Attacher.attach(args[0]); } catch (Exception e) { if (!e.getMessage().equals("0")) { - throw e; + Throwable cause = e.getCause(); + if (cause != null) { + if (!cause.getMessage().equals("0")) { + cause = e.getCause(); + if (cause != null) { + if (!cause.getMessage().equals("0")) { + throw e; + } + } + } + } } } System.out.println("ok");