Improve reporting of errors in printcore's connect()