From 4fb4bd705f32f2c2fb5a41ab888a64828e2e1a82 Mon Sep 17 00:00:00 2001 From: Mark Hale Date: Wed, 16 Oct 2024 14:38:05 +0100 Subject: [PATCH] Reduce common error handling overhead. --- .../msd/gin/halyard/strategy/HalyardValueExprEvaluation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strategy/src/main/java/com/msd/gin/halyard/strategy/HalyardValueExprEvaluation.java b/strategy/src/main/java/com/msd/gin/halyard/strategy/HalyardValueExprEvaluation.java index cde4553d3..3b77a543b 100644 --- a/strategy/src/main/java/com/msd/gin/halyard/strategy/HalyardValueExprEvaluation.java +++ b/strategy/src/main/java/com/msd/gin/halyard/strategy/HalyardValueExprEvaluation.java @@ -331,7 +331,7 @@ private ValuePipeEvaluationStep precompileVar(Var var) throws ValueExprEvaluatio if (bvalue != null) { parent.push(bvalue); } else { - parent.handleValueError(String.format("Var %s has no value (%s)", varName, bindings)); + parent.handleValueError("Var " + varName + " has no value"); } }; }