Skip to content

Commit

Permalink
Exception Change with new groovy version
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoellnitz committed Jun 12, 2016
1 parent 4d7f2a9 commit 475a1d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions guicy/src/org/tangram/guicy/TangramServletModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import groovy.lang.GroovyCodeSource;
import groovy.lang.GroovyShell;
import groovy.lang.Script;
import java.io.IOException;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.net.URL;
Expand Down Expand Up @@ -187,7 +186,7 @@ protected final void configureServlets() {
s.setProperty("module", this);
s.setProperty("log", LoggerFactory.getLogger(name.replace(".groovy", "").replace('/', '.')));
s.run();
} catch (IOException e) {
} catch (RuntimeException e) {
throw new Error("Failed to configure module via "+name, e);
} // try/catch
}
Expand Down

0 comments on commit 475a1d1

Please sign in to comment.