pike.git/
lib/
modules/
Sql.pmod/
pgsql_util.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2021-04-13
2021-04-13 14:14:11 by Stephen R. van den Berg <srb@cuci.nl>
f5173f242437a1adcdbd949432c53f39ca22be5a (
15
lines) (+
9
/-
6
)
[
Show
|
Annotate
]
Branch:
master
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
-
+
};
} }