Small logging improvement for exception returned when we are expecting nothing

This commit is contained in:
Richard Frith-Macdonald 2022-04-14 15:46:21 +01:00
parent 2a80449c4b
commit 57eae2e779
2 changed files with 16 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2022-04-14 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSConnection.m: If we get an exception in a packet from a
remote system to which we sent a oneway void message, decode the
exception and report it.
2022-04-07 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSeq.h: Fix normalisation to handle the case where combining

View file

@ -2037,9 +2037,17 @@ static NSLock *cached_proxies_gate = nil;
[node->value.obj decodeValueOfObjCType: @encode(BOOL)
at: &is_exception];
if (is_exception == YES)
NSLog(@"Got exception with %s", name);
{
/* Decode the exception object, and log it. */
id exc = [node->value.obj decodeObject];
NSLog(@"%@ got exception from oneway method %s - %@",
self, name, exc);
}
else
NSLog(@"Got response with %s", name);
{
NSLog(@"%@ got response from oneway method %s", self, name);
}
[self _doneInRmc: node->value.obj];
}
GSIMapRemoveKey(IreplyMap, (GSIMapKey)(NSUInteger)seq);