connect.c: add a way for git-daemon to pass an error back to client