pike.git / lib / modules / Sql.pmod / pgsql.pike

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql.pike:1263:    destruct(waitforauthready);   }      protected void destroy() {    string errstring;    mixed err = catch(close());    .pgsql_util.unregister_backend();    /*    * Flush out any asynchronously reported errors to stderr; because we are    * inside a destructor, throwing an error will not work anymore. +  * Warnings will be silently discarded at this point.    */ -  +  lastmessage = filter(lastmessage, has_prefix, "ERROR ");    if (err || (err = catch(errstring = error(1))))    werror(describe_backtrace(err));    else if (errstring && sizeof(errstring)) -  werror(errstring); +  werror("%s\n", errstring); // Add missing terminating newline   }      final void _connectfail(void|mixed err) {    PD("Connect failed %O reconnectdelay %d\n",err,reconnectdelay);    if(!err || reconnectdelay) {    int tdelay;    switch(tdelay=reconnectdelay) {    case 0:    reconnectdelay=RECONNECTDELAY;    break;