mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 10:44:47 +01:00
print already written text format to syserr if an exception occur to understand easer where the problem come from.
This commit is contained in:
parent
09a9e66e42
commit
3e365d718a
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user