Branch: Tag:

2021-04-13

2021-04-13 14:14:11 by Stephen R. van den Berg <srb@cuci.nl>

pgsql: Attempt at preventing exceptions during backtrace display.

2888:    * inside a destructor, throwing an error will not work anymore.    * Warnings will be silently discarded at this point.    */ +  catch { // Use yet another catch for exceptions in backtraces    lastmessage = filter(lastmessage, lambda(string val) {    return has_prefix(val, "ERROR ") || has_prefix(val, "FATAL "); });    if (err || (err = catch(errstring = geterror(1))))    werror(describe_backtrace(err));    else if (errstring && sizeof(errstring))    werror("%s\n", errstring); // Add missing terminating newline -  +  };    }    }