Changeset 518


Ignore:
Timestamp:
01/31/09 11:34:36 (3 years ago)
Author:
mooneer
Message:

Added more user-friendly error message for the rare case that System.exceptions doesn't exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • interpreter/trunk/objs/kite_obj_locate.c

    r462 r518  
    302302    free(classname); 
    303303    if (word == NULL && loc == NULL) { 
     304        if (strncmp(class, "System.exceptions", strlen("System.exceptions")) == 0) 
     305        { 
     306            printf("Fatal Kite error: could not find System.exceptions. This probably means\n"); 
     307            printf("that your Kite installation is corrupt. Please reinstall Kite from sources\n"); 
     308            printf("or your operating system's packages. If you continue to receive this error,\n"); 
     309            printf("please contact the Kite developers.\n\n"); 
     310            printf("Class attempted: %s\n", class); 
     311            assert(0); 
     312        } 
     313         
    304314        /* Couldn't find module; throw exception. */ 
    305315        kite_object_t *exc = kite_new_exception(thd, "System.exceptions.PackageNotFound",  
Note: See TracChangeset for help on using the changeset viewer.