Merge pull request #237 from tristanpenman/master

Minor fixes for warning and exception messages produced by _adapter_connect.