mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 22:17:39 +00:00
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:
parent
245f39e232
commit
738d7563ed
3 changed files with 15 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue