Changeset 836ea3a3


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
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    rc5f3b46 r836ea3a3  
    11$Id$
    22
     32.0.9-pre-1
     4        Added errqueue.
     5        Added command "show errors".
     6       
    372.0.8
    48        Increased size of screen name field in buddy listing
  • aim.c

    rec6ff52 r836ea3a3  
    225225{
    226226  if (message) {
    227     owl_function_makemsg(message);
     227    owl_function_error(message);
    228228  } else {
    229     owl_function_makemsg("Authentication error on login");
     229    owl_function_error("Authentication error on login");
    230230  }
    231231  owl_function_beep();
     
    15961596 
    15971597  /* printf("snac threw error (reason 0x%04x: %s)\n", reason, (reason<msgerrreasonslen)?msgerrreasons[reason]:"unknown"); */
    1598   owl_function_makemsg(msgerrreasons[reason]);
    15991598 
    16001599  return 1;
  • logging.c

    re6449bc r836ea3a3  
    2828  file=fopen(filename, "a");
    2929  if (!file) {
    30     owl_function_makemsg("Unable to open file for outgoing logging");
     30    owl_function_error("Unable to open file for outgoing logging");
    3131    owl_free(logpath);
    3232    return;
     
    4242  file=fopen(filename, "a");
    4343  if (!file) {
    44     owl_function_makemsg("Unable to open file for outgoing logging");
     44    owl_function_error("Unable to open file for outgoing logging");
    4545    return;
    4646  }
     
    6868  file=fopen(filename, "a");
    6969  if (!file) {
    70     owl_function_makemsg("Unable to open file for outgoing logging");
     70    owl_function_error("Unable to open file for outgoing logging");
    7171    owl_free(logpath);
    7272    return;
     
    8282  file=fopen(filename, "a");
    8383  if (!file) {
    84     owl_function_makemsg("Unable to open file for outgoing logging");
     84    owl_function_error("Unable to open file for outgoing logging");
    8585    return;
    8686  }
     
    179179  file=fopen(filename, "a");
    180180  if (!file) {
    181     owl_function_makemsg("Unable to open file for incoming logging");
     181    owl_function_error("Unable to open file for incoming logging");
    182182    return;
    183183  }
     
    187187    allfile=fopen(allfilename, "a");
    188188    if (!allfile) {
    189       owl_function_makemsg("Unable to open file for incoming logging");
     189      owl_function_error("Unable to open file for incoming logging");
    190190      fclose(file);
    191191      return;
  • util.c

    rf1e629d r836ea3a3  
    726726  file=fopen(filename, "r");
    727727  if (!file) {
    728     owl_function_makemsg("Error opening file %s", filename);
     728    owl_function_error("Error opening file %s", filename);
    729729    return;
    730730  }
     
    735735    backupfile=fopen(backupfilename, "w");
    736736    if (!backupfile) {
    737       owl_function_makemsg("Error opening file %s for writing", backupfilename);
     737      owl_function_error("Error opening file %s for writing", backupfilename);
    738738      owl_free(backupfilename);
    739739      return;
     
    773773  file=fopen(filename, "w");
    774774  if (!file) {
    775     owl_function_makemsg("WARNING: Error opening %s for writing.  Use %s to restore.", filename, backupfilename);
     775    owl_function_error("WARNING: Error opening %s for writing.  Use %s to restore.", filename, backupfilename);
    776776    owl_function_beep();
    777777    owl_free(line);
  • 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;
  • zwrite.c

    r9ceee9d r836ea3a3  
    3030  argv=myargv=owl_parseline(line, &argc);
    3131  if (argc<0) {
    32     owl_function_makemsg("Unbalanced quotes");
     32    owl_function_error("Unbalanced quotes in zwrite");
    3333    return(-1);
    3434  }
     
    135135      !strcasecmp(z->inst, "personal") &&
    136136      owl_list_get_size(&(z->recips))==0) {
    137     owl_function_makemsg("You must specify a recipient");
     137    owl_function_error("You must specify a recipient for zwrite");
    138138    return(-1);
    139139  }
Note: See TracChangeset for help on using the changeset viewer.