|Subject:||Clearer error messages for PeerHost/Port/Service and Listen|
I was trying to create a listening socket, and mistakenly provided PeerHost and PeerPort. I got the error "Cannot Listen with a PeerHost" -- but then after removing PeerHost, I got the error "Expected 'PeerHost'". That's pretty confusing -- do you want PeerHost or not?! The problem is that I should have been using *Local*Peer/Host instead, but the error message could be more helpful. In particular, it should clarify that PeerHost & PeerPort are expected to come together -- if you give one, you're expected to give the other. It might also be nice to mention that Peer* doesn't make sense if you're also specifying Listen. Only PeerHost is mentioned in the current error message -- but AFAICT, PeerPort doesn't make sense either.