caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Matching Unix_error
@ 2005-02-03 11:17 Michael Lahr
  2005-02-03 12:40 ` [Caml-list] " Olivier Andrieu
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Lahr @ 2005-02-03 11:17 UTC (permalink / raw)
  To: caml-list

Hi,

i'm trying something like this:

let start () = 
    try pipe#run() with
    Unix.Unix_error(_,_,_) -> print_string "matched\n"
    | _ -> print_string "not matched\n"; raise e ;

start();;

where pipe is a http_client's pipeline.

The output is:

not matched
Fatal error: exception Unix.Unix_error(38, "connect", "")

what's wrong here? shouldn't the expression Unix.Unix_error(_,_,_) match
this error?
btw this error occurs only when running under oUnit.
Any clues?

Michael
-- 


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

end of thread, other threads:[~2005-02-03 12:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-03 11:17 Matching Unix_error Michael Lahr
2005-02-03 12:40 ` [Caml-list] " Olivier Andrieu
2005-02-03 12:55   ` Michael Lahr

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).