Let's do small steps forward here. This patch changes the very unwanted
state (message is always lost) to message is always shown to the user.

Error reporting in Proxy is another chapter :-)

LZ

On Tue, Dec 03, 2013 at 12:34:14AM -0800, Ohad Levy wrote:
> > @@ -63,8 +63,9 @@ def record_conflicts
> >    private
> >  
> >    def proxy_error e
> > -    e.respond_to?(:message)  ? e.message : e
> > +    e.to_s + (e.respond_to?(:http_body) ? ": #{e.http_body}" : '')
> 
> Can we maybe review all proxy exceptions, and ensure they come back in json (if json was requested), this way it would be very easy to format the output down the road?
> 
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/theforeman/foreman/pull/1069/files#r8053202

-- 
Later,

 Lukas "lzap" Zapletal
 irc: lzap #theforeman