a more reliable error handling in gdsl initialization, take 2

This commit is contained in:
peter
2013-02-11 22:16:18 +01:00
parent 18478625fd
commit b62addc7a5
@@ -331,12 +331,12 @@ public class GroovyDslFileIndex extends ScalarIndexExtension<String> {
ref.set(executors);
}
catch (Throwable e) {
LOG.error(e);
ref.set(new ArrayList<Pair<File, GroovyDslExecutor>>());
//noinspection InstanceofCatchParameter
if (e instanceof Error) {
stopGdsl = true;
}
LOG.error(e);
}
finally {
semaphore.up();