Skip to content

Commit 973dfbd

Browse files
committed
chore: update error msg
1 parent 7dd622d commit 973dfbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/strands_env/rewards/math_reward.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ async def compute(self, action: Action, step_result: StepResult) -> RewardResult
7878

7979
try:
8080
matched = verify(gold, answer, float_rounding=self.float_rounding, timeout_seconds=self.timeout_seconds)
81-
except Exception:
82-
logger.debug("math-verify raised during comparison", exc_info=True)
81+
except Exception as e:
82+
logger.error(f"math-verify failed: {e} (gold={gold}, answer={answer})")
8383
matched = False
8484

8585
return RewardResult(

0 commit comments

Comments
 (0)