Add better error message for wrong param type for port

Convenience error for clearly conveying that the port should be of type "number"