Skip to content

Commit 77c3192

Browse files
committed
Update fall back string for unspecified unit abbreviation
Help determine what unit is missing abbreviation.
1 parent 7f36f57 commit 77c3192

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/UnitsNet/CustomCode/UnitSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public string[] GetAllAbbreviations<TUnit>(TUnit unit)
243243
{
244244
if (IsDefaultCulture)
245245
{
246-
return new[] {string.Format("(no abbreviation for {0})", unit.ToString())};
246+
return new[] {string.Format("(no abbreviation for {0}.{1})", unitType.Name, unit)};
247247
}
248248

249249
// Fall back to default culture

0 commit comments

Comments
 (0)