Changeset 1583 for branches/stable


Ignore:
Timestamp:
Jul 28, 2007, 11:36:13 AM (12 years ago)
Author:
bruno
Message:

Improve error messages from conf file lib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/lib/mr_conf.c

    r1571 r1583  
    403403
    404404        case MRCONF_FIELD_NOT_FOUND:
    405             mr_msg_int(1,line,file,"%s (%s) %s \"%s\"", MRCONF_STR_ERROR, mr_conf_filename, MRCONF_STR_FIELD_NOT_FOUND, add_line);
     405            mr_msg_int(1,line,file,"%s: %s (%s) %s \"%s\"", add_line, MRCONF_STR_ERROR, mr_conf_filename, MRCONF_STR_FIELD_NOT_FOUND, add_line);
    406406            mr_msg_int(1,line,file,"%s (%s) %s", MRCONF_STR_WARNING, mr_conf_filename, MRCONF_STR_SET_TO_ZERO);
    407407            break;
    408408
    409409        case MRCONF_FIELD_NO_VALUE:
    410             mr_msg_int(1,line,file,"%s (%s) %s \"%s\"", MRCONF_STR_ERROR, mr_conf_filename, MRCONF_STR_FIELD_NO_VALUE, add_line);
     410            mr_msg_int(1,line,file,"%s: %s (%s) %s \"%s\"", add_line, MRCONF_STR_ERROR, mr_conf_filename, MRCONF_STR_FIELD_NO_VALUE, add_line);
    411411            mr_msg_int(1,line,file,"%s (%s) %s", MRCONF_STR_WARNING, mr_conf_filename, MRCONF_STR_IGNORE);
    412412            break;
     
    425425
    426426        case MRCONF_STRING_QUOTE:
    427             mr_msg_int(1,line,file,"%s (%s) %s", MRCONF_STR_ERROR, mr_conf_filename, MRCONF_STR_STRING_QUOTE);
     427            mr_msg_int(1,line,file,"%s: %s (%s) %s", add_line, MRCONF_STR_ERROR, mr_conf_filename, MRCONF_STR_STRING_QUOTE);
    428428            break;
    429429
    430430        case MRCONF_STRING_ENDQUOTE:
    431             mr_msg_int(1,line,file,"%s (%s) %s", MRCONF_STR_ERROR, mr_conf_filename, MRCONF_STR_STRING_ENDQUOTE);
     431            mr_msg_int(1,line,file,"%s: %s (%s) %s", add_line, MRCONF_STR_ERROR, mr_conf_filename, MRCONF_STR_STRING_ENDQUOTE);
    432432            break;
    433433
Note: See TracChangeset for help on using the changeset viewer.