diff --git a/src/de/inetsoftware/jwebassembly/JWebAssembly.java b/src/de/inetsoftware/jwebassembly/JWebAssembly.java index 187e3c7..0694a54 100644 --- a/src/de/inetsoftware/jwebassembly/JWebAssembly.java +++ b/src/de/inetsoftware/jwebassembly/JWebAssembly.java @@ -157,8 +157,13 @@ public class JWebAssembly { */ public String compileToText() throws WasmException { StringBuilder output = new StringBuilder(); - compileToText( output ); - return output.toString(); + try { + compileToText( output ); + return output.toString(); + } catch( Exception ex ) { + System.err.println( output ); + throw ex; + } } /**