Author: mlytwyn
Date: Tue Feb 23 18:47:51 2016
New Revision: 39409
URL: http://svn.gna.org/viewcvs/gnustep?rev=39409&view=rev
Log:
Add port name to error log
Modified:
libs/base/branches/gnustep_testplant_branch/Source/win32/NSMessagePort.m
Modified:
libs/base/branches/gnustep_testplant_branch/Source/win32/NSMessagePort.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/branches/gnustep_testplant_branch/Source/win32/NSMessagePort.m?rev=39409&r1=39408&r2=39409&view=diff
==============================================================================
--- libs/base/branches/gnustep_testplant_branch/Source/win32/NSMessagePort.m
(original)
+++ libs/base/branches/gnustep_testplant_branch/Source/win32/NSMessagePort.m
Tue Feb 23 18:47:51 2016
@@ -671,15 +671,16 @@
encoding: NSASCIIStringEncoding];
NSDebugFLLog(@"NSMessagePort", @"Decoded port as '%@'", n);
rPort = [messagePortClass newWithName: n];
- RELEASE(n);
if (rPort == nil)
{
- NSLog(@"%@ - unable to decode remote port", self);
+ NSLog(@"%@ - unable to decode remote port: %@", self, n);
+ RELEASE(n);
#if defined(__MINGW__)
[[self class] printStackTrace];
#endif
break;
}
+ RELEASE(n);
rItems = [NSMutableArray alloc];
rItems = [rItems initWithCapacity: nItems];
d = [[NSMutableData alloc] initWithBytes: buf + off
@@ -711,15 +712,16 @@
encoding: NSASCIIStringEncoding];
NSDebugFLLog(@"NSMessagePort", @"Decoded port as '%@'", n);
p = [messagePortClass newWithName: n];
- RELEASE(n);
if (p == nil)
{
- NSLog(@"%@ - unable to decode remote port", self);
+ NSLog(@"%@ - unable to decode remote port: %@", self, n);
+ RELEASE(n);
#if defined(__MINGW__)
[[self class] printStackTrace];
#endif
break;
}
+ RELEASE(n);
[rItems addObject: p];
RELEASE(p);
}
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs