git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Returning error message from custom smart http server
@ 2014-05-13  7:39 "Ákos, Tajti"
  2014-05-16 23:01 ` brian m. carlson
  0 siblings, 1 reply; 5+ messages in thread
From: "Ákos, Tajti" @ 2014-05-13  7:39 UTC (permalink / raw)
  To: git

Dear List,

we implemented our own git smart http server to be able to check 
permissions and other thing before pushes. It works fine, however, the 
error messages we generate on the server side are not displayed by the 
command line client. On the server we generate error messages like this:

         response.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
         response.getWriter().write(msg);

On the command line we get this:

Total 0 (delta 0), reused 0 (delta 0)
POST git-receive-pack (290 bytes)
efrror: RPC failed; result=22, HTTP code = 401
atal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly

The server message is completely missing. Is there a solution for this?

Thanks,
Ákos Tajti


---
A levél vírus, és rosszindulatú kód mentes, mert az avast! Antivirus védelme ellenőrizte azt.
http://www.avast.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-05-19 15:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-13  7:39 Returning error message from custom smart http server "Ákos, Tajti"
2014-05-16 23:01 ` brian m. carlson
2014-05-19  8:12   ` Bryan Turner
2014-05-19  9:40     ` Carlos Martín Nieto
2014-05-19 15:09     ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).