Check for init_system_exceptions errors.
authortwisti <none@none>
Thu, 11 Nov 2004 14:37:23 +0000 (14:37 +0000)
committertwisti <none@none>
Thu, 11 Nov 2004 14:37:23 +0000 (14:37 +0000)
main.c
src/cacao/cacao.c

diff --git a/main.c b/main.c
index a76558f35a8874d0215f06b9de6e2d2b6c1c1e5f..e4084162c0973c75f97a98c86bec559b2271575d 100644 (file)
--- a/main.c
+++ b/main.c
@@ -37,7 +37,7 @@
      - Calling the class loader
      - Running the main method
 
-   $Id: main.c 1474 2004-11-11 10:09:10Z carolyn $
+   $Id: main.c 1481 2004-11-11 14:37:23Z twisti $
 
 */
 
@@ -647,7 +647,8 @@ int main(int argc, char **argv)
        jit_init();
 
        /* initialize exceptions used in the system */
-       init_system_exceptions();
+       if (!init_system_exceptions())
+               throw_main_exception_exit();
 
        native_loadclasses();
 
index bd4a7ff380ba939b58bba873ae54c4094dc155f5..f9e0d23caf48e2a867a7e5a142cffa39d66927b6 100644 (file)
@@ -37,7 +37,7 @@
      - Calling the class loader
      - Running the main method
 
-   $Id: cacao.c 1474 2004-11-11 10:09:10Z carolyn $
+   $Id: cacao.c 1481 2004-11-11 14:37:23Z twisti $
 
 */
 
@@ -647,7 +647,8 @@ int main(int argc, char **argv)
        jit_init();
 
        /* initialize exceptions used in the system */
-       init_system_exceptions();
+       if (!init_system_exceptions())
+               throw_main_exception_exit();
 
        native_loadclasses();