Re: [PATCH] git-remote-mediawiki: better error message when HTTP(S) access fails

2013-05-29 Thread Matthieu Moy
Jeff King p...@peff.net writes: On Thu, May 23, 2013 at 10:05:03PM +0200, Matthieu Moy wrote: My use-case is an invalid SSL certificate. Pulling from the wiki with a recent version of libwww-perl fails, and git-remote-mediawiki gave no clue about the reason. Give the mediawiki API detailed

Re: [PATCH] git-remote-mediawiki: better error message when HTTP(S) access fails

2013-05-29 Thread Jeff King
On Wed, May 29, 2013 at 02:01:59PM +0200, Matthieu Moy wrote: I wonder if we can do something like: our $mw_operation; $mediawiki-{config}-{on_error} = sub { [...] die $err\n; }; Probably, but that would hardcode the fact that mediawiki errors are fatal, while in

Re: [PATCH] git-remote-mediawiki: better error message when HTTP(S) access fails

2013-05-28 Thread Jeff King
On Thu, May 23, 2013 at 10:05:03PM +0200, Matthieu Moy wrote: My use-case is an invalid SSL certificate. Pulling from the wiki with a recent version of libwww-perl fails, and git-remote-mediawiki gave no clue about the reason. Give the mediawiki API detailed error message, and since it is not