mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 10:44:47 +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 {
|
||||
ModuleGenerator generator = new ModuleGenerator( writer, target, libraries );
|
||||
for( URL url : classFiles ) {
|
||||
ClassFile classFile = new ClassFile( new BufferedInputStream( url.openStream() ) );
|
||||
generator.prepare( classFile );
|
||||
try {
|
||||
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.finish();
|
||||
|
Loading…
x
Reference in New Issue
Block a user