summaryrefslogtreecommitdiff
path: root/libobjc/class.c
diff options
context:
space:
mode:
Diffstat (limited to 'libobjc/class.c')
-rw-r--r--libobjc/class.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libobjc/class.c b/libobjc/class.c
index 37b2b4eebf9..76f9e8feecd 100644
--- a/libobjc/class.c
+++ b/libobjc/class.c
@@ -88,6 +88,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
structures is freeing data when is removed from the structures. */
#include "objc-private/common.h"
+#include "objc-private/error.h"
#include "objc/objc.h"
#include "objc/objc-api.h"
#include "objc/thr.h"
@@ -500,8 +501,9 @@ objc_get_class (const char *name)
if (class)
return class;
- objc_error (nil, OBJC_ERR_BAD_CLASS,
- "objc runtime: cannot find class %s\n", name);
+ /* FIXME: Should we abort the program here ? */
+ _objc_abort ("objc runtime: cannot find class %s\n", name);
+
return 0;
}