Changeset 94af438


Ignore:
Timestamp:
Jun 23, 2009, 12:45:56 AM (12 years ago)
Author:
Geoffrey Thomas <geofft@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
2c270e6
Parents:
30e7ffd
Message:
Display a nicer error in :blist if .anyone doesn't exist.

Signed-off-by: Geoffrey Thomas <geofft@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    r8daf504 r94af438  
    31083108      ret=owl_zephyr_get_anyone_list(&anyone, filename);
    31093109      if (ret) {
    3110         owl_fmtext_append_normal(&fm, "  Error opening file for zephyr buddies.\n");
     3110        if (errno == ENOENT) {
     3111          owl_fmtext_append_normal(&fm, " You have not added any zephyr buddies.  Use the\n");
     3112          owl_fmtext_append_normal(&fm, " command ':addbuddy zephyr ");
     3113          owl_fmtext_append_bold(  &fm, "<username>");
     3114          owl_fmtext_append_normal(&fm, "'.\n");
     3115        } else {
     3116          owl_fmtext_append_normal(&fm, " Could not read zephyr buddies from the .anyone file.\n");
     3117        }
    31113118      } else {
    31123119        j=owl_list_get_size(&anyone);
Note: See TracChangeset for help on using the changeset viewer.