Skip to content

Commit 9ba45a7

Browse files
authored
Merge pull request #803 from marcinotorowski/fix-localization-exception
Add missing interpolation character
2 parents 9a54d78 + 87316e9 commit 9ba45a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CommandLine/Infrastructure/LocalizableAttributeProperty.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ private string GetLocalizedValue()
4848
throw new ArgumentException($"Invalid resource type '{_type.FullName}'! {_type.Name} is not visible for the parser! Change resources 'Access Modifier' to 'Public'", _propertyName);
4949
PropertyInfo propertyInfo = _type.GetProperty(_value, BindingFlags.Public | BindingFlags.GetProperty | BindingFlags.Static);
5050
if (propertyInfo == null || !propertyInfo.CanRead || propertyInfo.PropertyType != typeof(string))
51-
throw new ArgumentException("Invalid resource property name! Localized value: {_value}", _propertyName);
51+
throw new ArgumentException($"Invalid resource property name! Localized value: {_value}", _propertyName);
5252
_localizationPropertyInfo = propertyInfo;
5353
}
5454
return (string)_localizationPropertyInfo.GetValue(null, null);

0 commit comments

Comments
 (0)