remote-helpers: make recvline return an error