It is easy for ssh because we have stderr. I don't know if it is possible to use
multipart for that (given we have to stream the file, and we don't want to
base64 encode it)
Feel free to add ideas/suggestions/...
$ hg push http://mydomain.com/hello/
pushing to http://mydomain.com/hello/
searching for changes
abort: 'http://mydomain.com/hello/' does not appear to be an hg repository!
I would have prefered not to have to run a sniffer to get the real cause:
<title>Mercurial Error</title>
</head>
<body>
<h2>Mercurial Error</h2>
<p>
An error occured while processing your request:
</p>
<p>
11
Permission denied
7
</p>