(Finally) committed. Thanks for all the input.
As I enumerated in the commit message, - None of the interface actually uses the new function. - A new function to generate the error-page, but not output it, is still required.
I'll get around to it soonish, but I have a lot on my plate at the moment, and may not get around to it.
Andrew