Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 840bab2

Browse files
committed
add parens in error msg
1 parent 10e9d20 commit 840bab2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ServiceStack.Text/DynamicNumber.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,8 @@ public static IDynamicNumber AssertNumbers(string name, object lhs, object rhs)
450450
if (number == null)
451451
{
452452
throw new ArgumentException($"Invalid numbers passed to {name}: " +
453-
$"{lhs?.GetType().Name ?? "null"} '{lhs?.ToString().SubstringWithElipsis(0, 100)}', " +
454-
$"{rhs?.GetType().Name ?? "null"} '{rhs?.ToString().SubstringWithElipsis(0, 100)}'");
453+
$"({lhs?.GetType().Name ?? "null"} '{lhs?.ToString().SubstringWithElipsis(0, 100)}', " +
454+
$"{rhs?.GetType().Name ?? "null"} '{rhs?.ToString().SubstringWithElipsis(0, 100)}')");
455455
}
456456

457457
return number;

0 commit comments

Comments
 (0)