BUGFIX reporting errors when something went wrong during processing the request

Sometimes it could happen that invalid (empty) return message was returned
when some error occured in processing the request. The correct error message
were logged/printed, but the error return message for the client was empty.
1 file changed