Skip to content

Commit

Permalink
disambiguate exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidHVernon committed Jan 31, 2024
1 parent 2df0df5 commit 61117d6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Source/GSString.m
Original file line number Diff line number Diff line change
Expand Up @@ -2710,7 +2710,7 @@ - (id) retain
if (c > 127)
{
[NSException raise: NSCharacterConversionException
format: @"unable to convert to encoding"];
format: @"unable to convert to encoding (one)"];
}
buffer[i] = c;
}
Expand Down Expand Up @@ -2803,8 +2803,9 @@ - (id) retain

if (u & 0xff00)
{
[NSException raise: NSCharacterConversionException
format: @"unable to convert to encoding"];
[NSException
raise:NSCharacterConversionException
format:@"unable to convert to encoding (two)"];
}
buffer[i] = (char)u;
}
Expand All @@ -2830,7 +2831,7 @@ - (id) retain
if (u & 0xff80)
{
[NSException raise: NSCharacterConversionException
format: @"unable to convert to encoding"];
format: @"unable to convert to encoding (three)"];
}
buffer[i] = (char)u;
}
Expand Down

0 comments on commit 61117d6

Please sign in to comment.