Better debugging

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13370 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2002-04-06 04:49:53 +00:00
parent 245f39e232
commit 738d7563ed
3 changed files with 15 additions and 7 deletions

View file

@ -189,17 +189,19 @@ initialize_gnustep_backend(void)
break;
path = nil;
}
NSCAssert(path != nil,
GSGuiLocalizedString (@"Unable to load backend, aborting",
nil));
NSCAssert1(path != nil,
GSGuiLocalizedString (@"Unable to load backend %@",
nil), bundleName);
NSDebugLog(@"Loading Backend from %@", path);
NSDebugFLLog(@"BackendBundle", @"Loading Backend from %@", path);
theBundle = [NSBundle bundleWithPath: path];
NSCAssert(theBundle != nil,
GSGuiLocalizedString (@"Can't init backend bundle", nil));
NSCAssert1(theBundle != nil,
GSGuiLocalizedString (@"Can't init backend bundle %@", nil),
path);
backend = [theBundle classNamed: @"GSBackend"];
NSCAssert(backend,
GSGuiLocalizedString (@"Can't load backend bundle", nil));
GSGuiLocalizedString (@"Can't load backend class", nil));
[backend initializeBackend];
}
#else