mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
Remove references to SoySyntaxException
SoySyntaxException is an abstract exception type and is never even declared to be thrown (all declarations about this changed about 2 years ago). So places catching it should either change to catch SoyCompilationException, or do nothing and let it propagate. Tested: TAP sample presubmit queue [] ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=185050724
This commit is contained in:
parent
6ca523386a
commit
c34e547659
1 changed files with 1 additions and 2 deletions
|
@ -28,7 +28,6 @@ import com.google.re2j.Matcher;
|
|||
import com.google.re2j.Pattern;
|
||||
import com.google.template.soy.SoyFileSet;
|
||||
import com.google.template.soy.SoyUtils;
|
||||
import com.google.template.soy.base.SoySyntaxException;
|
||||
import com.google.template.soy.parseinfo.SoyFileInfo;
|
||||
import com.google.template.soy.shared.SoyCssRenamingMap;
|
||||
import com.google.template.soy.tofu.SoyTofu;
|
||||
|
@ -55,7 +54,7 @@ public final class SoyTemplateUtils {
|
|||
Map<String, Object> globals = new HashMap<>();
|
||||
try {
|
||||
globals.putAll(SoyUtils.parseCompileTimeGlobals(asCharSource(SOY_GLOBALS, UTF_8)));
|
||||
} catch (SoySyntaxException | IOException e) {
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException("Failed to load soy globals", e);
|
||||
}
|
||||
globals.put("DEBUG", debugMode.ordinal());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue