From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA10939; Mon, 27 Aug 2001 14:01:51 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id OAA10933 for ; Mon, 27 Aug 2001 14:01:50 +0200 (MET DST) Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f7RC1nn28814 for ; Mon, 27 Aug 2001 14:01:49 +0200 (MET DST) Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id f7RC1mm75057 ; Mon, 27 Aug 2001 14:01:48 +0200 (CEST) Received: from localhost (frisch@localhost) by clipper.ens.fr (8.9.2/jb-1.1) id OAA19133 ; Mon, 27 Aug 2001 14:01:48 +0200 (MET DST) Date: Mon, 27 Aug 2001 14:01:48 +0200 (MET DST) From: Alain Frisch To: Michael Leary cc: caml Subject: Re: [Caml-list] OcamlMakefile not working for me... In-Reply-To: <20010827025906.A9673@jean.nwlink.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Mon, 27 Aug 2001, Michael Leary wrote: > All good 'till now, but it doesn't run right: > > $> ./nineteen_one > Fatal error: uncaught exception Failure("Cgi.parse_arguments: unknown method") This function expects the program to be called with the CGI interface; when you call it directly on the command line, the Cgi module can't tell what the CGI arguments are and which _HTTP_ method you use. (Perl's CGI has something interesting for debugging: when the program is called on the command line, the module asks the user for 'name=value' bindings on the standard input; maybe this could be an useful feature for Cgi) > try > Cgi.parse_arguments default_config; > with x -> > raise x;; > > > but that helped not at all... This can't help for any problem at all: this construction catches the exception and raises it again immediatly; except for the backtrace stack, it is as if you did 'Cgi.parse_arguments default_config'. Alain ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr