mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
Use new exception variable name.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1692 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7f44fbe8d9
commit
97754fee3e
2 changed files with 6 additions and 4 deletions
|
@ -62,7 +62,7 @@ main(int ac, char *av[])
|
|||
object = [bundle principalClass];
|
||||
NS_HANDLER
|
||||
object = nil;
|
||||
fprintf(stderr, " ERROR: %s\n", [[exception reason] cString]);
|
||||
fprintf(stderr, " ERROR: %s\n", [[localException reason] cString]);
|
||||
fprintf(stderr, " Either there is a problem with dynamic loading,\n");
|
||||
fprintf(stderr, " or there is no dynamic loader on your system\n");
|
||||
exit(1);
|
||||
|
|
|
@ -48,13 +48,15 @@ NS_DURING
|
|||
v2 = [NSValue value:NULL withObjCType:@encode(int)];
|
||||
NS_HANDLER
|
||||
printf("Caught our exception, name %s and reason: %s\n",
|
||||
[[exception name] cString], [[exception reason] cString]);
|
||||
[exception raise];
|
||||
[[localException name] cString],
|
||||
[[localException reason] cString]);
|
||||
[localException raise];
|
||||
NS_ENDHANDLER
|
||||
|
||||
NS_HANDLER
|
||||
printf("Caught our reraised exception, name %s and reason: %s\n",
|
||||
[[exception name] cString], [[exception reason] cString]);
|
||||
[[localException name] cString],
|
||||
[[localException reason] cString]);
|
||||
|
||||
NS_ENDHANDLER
|
||||
|
||||
|
|
Loading…
Reference in a new issue