Skip to content

Commit

Permalink
add an 'errorButNoDebugContext'
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Aug 23, 2020
1 parent cb0991c commit 679b43c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

public abstract class TagContext implements Debuggable, Cloneable {
public boolean debug;
public boolean showErrors;
public ScriptEntry entry;
public ScriptTag script;
public DefinitionProvider definitionProvider;
Expand All @@ -27,6 +28,10 @@ public TagContext clone() {
}
}

public boolean showErrors() {
return debug || showErrors;
}

@Override
public boolean shouldDebug() {
return debug;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public class CoreUtilities {

public static TagContext noDebugContext;
public static TagContext basicContext;
public static TagContext errorButNoDebugContext;

public static DecimalFormatSymbols decimalFormatSymbols = new DecimalFormatSymbols(Locale.US);

Expand Down

0 comments on commit 679b43c

Please sign in to comment.