[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Michael Lahr <m.lahr@r...> |
| Subject: | Matching Unix_error |
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
--