diff --git a/src/de/inetsoftware/jwebassembly/JWebAssembly.java b/src/de/inetsoftware/jwebassembly/JWebAssembly.java index 537c81f..1d57d36 100644 --- a/src/de/inetsoftware/jwebassembly/JWebAssembly.java +++ b/src/de/inetsoftware/jwebassembly/JWebAssembly.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 - 2020 Volker Berlin (i-net software) + * Copyright 2017 - 2022 Volker Berlin (i-net software) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -362,7 +362,11 @@ public class JWebAssembly { ClassFile classFile = new ClassFile( new BufferedInputStream( url.openStream() ) ); generator.prepare( classFile ); } catch( IOException ex ) { - throw WasmException.create( "Parsing of file " + url + " failed.", ex ); + LOGGER.fine( url + " " + ex ); + if( url.getFile().endsWith( ".class" ) ) { + throw WasmException.create( "Parsing of file " + url + " failed.", ex ); + } + // does not throw an exception on non *.class files like resource files or *.kotlin_module } } generator.prepareFinish();