return error message when message content is null