print already written text format to syserr if an exception occur to understand easer where the problem come from.

This commit is contained in:
Volker Berlin 2019-02-23 16:28:04 +01:00
parent 09a9e66e42
commit 3e365d718a

View File

@ -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;
}
}
/**