mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +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 {
|
public String compileToText() throws WasmException {
|
||||||
StringBuilder output = new StringBuilder();
|
StringBuilder output = new StringBuilder();
|
||||||
compileToText( output );
|
try {
|
||||||
return output.toString();
|
compileToText( output );
|
||||||
|
return output.toString();
|
||||||
|
} catch( Exception ex ) {
|
||||||
|
System.err.println( output );
|
||||||
|
throw ex;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user