issue #22410: send debug errors back to client