mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
a more reliable error handling in gdsl initialization, take 2
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user