Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] OcamlMakefile not working for me...
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alain Frisch <frisch@c...>
Subject: Re: [Caml-list] OcamlMakefile not working for me...
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