It is important that you understand your puppy. A puppy who is crying because it has to potty shouldn't be ignored, but a puppy who is attention seeking needs to learn to cope, otherwise it will only get worse as they age. Ensure the crate is comfortable and that your puppy has had sufficient exercise and potty breaks before bedtime, and this should diminish whining.