Skip to content

Commit

Permalink
Update AviatorUtils.java
Browse files Browse the repository at this point in the history
  • Loading branch information
getrebuild committed Jan 21, 2025
1 parent 8b3c093 commit 309aa4c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import com.googlecode.aviator.AviatorEvaluatorInstance;
import com.googlecode.aviator.Options;
import com.googlecode.aviator.exception.ExpressionSyntaxErrorException;
import com.googlecode.aviator.exception.StandardError;
import com.googlecode.aviator.lexer.token.OperatorType;
import com.googlecode.aviator.runtime.function.FunctionUtils;
import com.googlecode.aviator.runtime.function.system.AssertFunction;
Expand Down Expand Up @@ -109,7 +110,9 @@ public static Object eval(String expression, Map<String, Object> env, boolean qu
throw new AssertFailedException((AssertFunction.AssertFailed) ex);
}

log.error("Bad aviator expression : \n>> {}\n>> {}\n>> {}", expression, env, ex.getLocalizedMessage());
if (!StandardError.class.getName().equals(ex.getClass().getName())) {
log.error("Bad aviator expression : \n>> {}\n>> {}\n>> {}", expression, env, ex.getLocalizedMessage());
}
if (!quietly) throw ex;
}
return null;
Expand Down

0 comments on commit 309aa4c

Please sign in to comment.