mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
improve error message
This commit is contained in:
parent
6511ab372f
commit
d0221065fb
@ -337,8 +337,12 @@ public class JWebAssembly {
|
|||||||
private void compile( ModuleWriter writer, WasmTarget target ) throws IOException, WasmException {
|
private void compile( ModuleWriter writer, WasmTarget target ) throws IOException, WasmException {
|
||||||
ModuleGenerator generator = new ModuleGenerator( writer, target, libraries );
|
ModuleGenerator generator = new ModuleGenerator( writer, target, libraries );
|
||||||
for( URL url : classFiles ) {
|
for( URL url : classFiles ) {
|
||||||
ClassFile classFile = new ClassFile( new BufferedInputStream( url.openStream() ) );
|
try {
|
||||||
generator.prepare( classFile );
|
ClassFile classFile = new ClassFile( new BufferedInputStream( url.openStream() ) );
|
||||||
|
generator.prepare( classFile );
|
||||||
|
} catch( IOException ex ) {
|
||||||
|
throw WasmException.create( "Parsing of file " + url + " failed.", ex );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
generator.prepareFinish();
|
generator.prepareFinish();
|
||||||
generator.finish();
|
generator.finish();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user