issue: #22410 - send debug errors back to client
Merge pull request #1214 from julesstp/22410-ErrMessagesToClient

issue #22410: send debug errors back to client