Fix bug DNN-5519: update the error message.