Changeset 836ea3a3 for variable.c


Ignore:
Timestamp:
Oct 17, 2003, 5:20:48 PM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
6a50af2
Parents:
ec6ff52
Message:
Converted more error messages to use the error queue
File:
1 edited

Legend:

Unmodified
Added
Removed
  • variable.c

    rf1e629d r836ea3a3  
    477477  v = owl_dict_find_element(d, name);
    478478  if (v == NULL) {
    479     if (msg) owl_function_makemsg("Unknown variable %s", name);
     479    if (msg) owl_function_error("Unknown variable %s", name);
    480480    return -1;
    481481  }
    482482  if (!v->set_fromstring_fn) {
    483     if (msg) owl_function_makemsg("Variable %s is read-only", name);
     483    if (msg) owl_function_error("Variable %s is read-only", name);
    484484    return -1;   
    485485  }
    486486  if (requirebool && v->type!=OWL_VARIABLE_BOOL) {
    487     if (msg) owl_function_makemsg("Variable %s is not a boolean", name);
     487    if (msg) owl_function_error("Variable %s is not a boolean", name);
    488488    return -1;   
    489489  }
    490490  if (0 != v->set_fromstring_fn(v, value)) {
    491     if (msg) owl_function_makemsg("Unable to set %s (must be %s)", name,
     491    if (msg) owl_function_error("Unable to set %s (must be %s)", name,
    492492                                  owl_variable_get_validsettings(v));
    493493    return -1;
Note: See TracChangeset for help on using the changeset viewer.