From 61117d636e29b41818e8b805f727017ff104dfc8 Mon Sep 17 00:00:00 2001 From: DavidHVernon Date: Wed, 31 Jan 2024 16:30:01 -0700 Subject: [PATCH] disambiguate exception. --- Source/GSString.m | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/GSString.m b/Source/GSString.m index fa2157fc56..eaf3d6b784 100644 --- a/Source/GSString.m +++ b/Source/GSString.m @@ -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; } @@ -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; } @@ -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; }