pike.git / lib / modules / Calendar.pmod / mkrules.pike

version» Context lines:

pike.git/lib/modules/Calendar.pmod/mkrules.pike:663:    throw( sprintf(fmt,@args) );   }      void collect_rules(string file)   {    int n=0;    werror("reading %O...\n",file);    string s=Stdio.read_bytes(file),t;    if (!s)    { -  werror("%s:-: Failed to open file: %m.\n",file); +  // NB: This file is often used with the system Pike, so +  // it can't use %m yet. +  werror("%s:-: Failed to open file: %s.\n", file, strerror(errno()));    return;    }       Zone lastz;    MyRule lastr;       foreach (s/"\n",string line)    {    n++;    mixed err=catch