mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Merge pull request #337 from qmfrederik/fixes/tool-not-found-error
NSDistributedNotificationCenter: Throw a descriptive exception when gdnc could not be found
This commit is contained in:
commit
ab11ba285e
1 changed files with 6 additions and 0 deletions
|
@ -699,6 +699,12 @@ static NSDistributedNotificationCenter *netCenter = nil;
|
|||
|
||||
cmd = [NSTask launchPathForTool: @"gdnc"];
|
||||
|
||||
if (cmd == nil)
|
||||
{
|
||||
[NSException raise: NSInternalInconsistencyException
|
||||
format: @"Unable to find the gdnc tool.\n"];
|
||||
}
|
||||
|
||||
NSDebugMLLog(@"NSDistributedNotificationCenter",
|
||||
@"\nI couldn't contact the notification server for %@ -\n"
|
||||
@"so I'm attempting to to start one - which will take a few seconds.\n"
|
||||
|
|
Loading…
Reference in a new issue