mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
skip additional exceptions if formatting fails
This commit is contained in:
@@ -47,6 +47,7 @@ import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.GrBinary
|
||||
import org.jetbrains.plugins.groovy.lang.psi.api.statements.expressions.GrCommandArgumentList;
|
||||
import org.jetbrains.plugins.groovy.lang.psi.api.statements.params.GrParameterList;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -115,10 +116,12 @@ public class GroovyBlock implements Block, GroovyElementTypes, ASTBlock {
|
||||
catch (AssertionError e) {
|
||||
final PsiFile file = myNode.getPsi().getContainingFile();
|
||||
LogMessageEx.error(LOG, "Formatting failed for file " + file.getName(), e, file.getText(), myNode.getText());
|
||||
mySubBlocks = new ArrayList<Block>();
|
||||
}
|
||||
catch (RuntimeException e) {
|
||||
final PsiFile file = myNode.getPsi().getContainingFile();
|
||||
LogMessageEx.error(LOG, "Formatting failed for file " + file.getName(), e, file.getText(), myNode.getText());
|
||||
mySubBlocks = new ArrayList<Block>();
|
||||
}
|
||||
}
|
||||
return mySubBlocks;
|
||||
|
||||
Reference in New Issue
Block a user