Fix value in error message about negative relative tolerance

This commit is contained in:
Petr Viktorin 2021-03-16 18:54:52 +01:00
parent 4dbb29431a
commit 1f131afb07
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ class ApproxScalar(ApproxBase):
if relative_tolerance < 0:
raise ValueError(
f"relative tolerance can't be negative: {absolute_tolerance}"
f"relative tolerance can't be negative: {relative_tolerance}"
)
if math.isnan(relative_tolerance):
raise ValueError("relative tolerance can't be NaN.")