Commit b0f4e90d authored by Marc Dutoo's avatar Marc Dutoo

improved error logging

parent aeefcf1f
...@@ -86,8 +86,10 @@ public class JavaCodeTransformer implements CodeTransformerItf { ...@@ -86,8 +86,10 @@ public class JavaCodeTransformer implements CodeTransformerItf {
membraneGeneration.close(); membraneGeneration.close();
} catch (Exception e) { } catch (Exception e) {
Throwable throwable; Throwable throwable = e;
throwable = (Throwable) e.getCause().getCause().getCause(); while (throwable.getCause() != null) {
throwable = throwable.getCause();
}
if (throwable instanceof IOException) { if (throwable instanceof IOException) {
throw new CompilationException( throw new CompilationException(
throwable.getMessage()); throwable.getMessage());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment