File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/de/inetsoftware/jwebassembly Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -337,8 +337,12 @@ private void compileToBinary( WasmTarget target ) throws WasmException {
337337 private void compile ( ModuleWriter writer , WasmTarget target ) throws IOException , WasmException {
338338 ModuleGenerator generator = new ModuleGenerator ( writer , target , libraries );
339339 for ( URL url : classFiles ) {
340- ClassFile classFile = new ClassFile ( new BufferedInputStream ( url .openStream () ) );
341- generator .prepare ( classFile );
340+ try {
341+ ClassFile classFile = new ClassFile ( new BufferedInputStream ( url .openStream () ) );
342+ generator .prepare ( classFile );
343+ } catch ( IOException ex ) {
344+ throw WasmException .create ( "Parsing of file " + url + " failed." , ex );
345+ }
342346 }
343347 generator .prepareFinish ();
344348 generator .finish ();
You can’t perform that action at this time.
0 commit comments