From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id C53B2BC88 for ; Thu, 3 Feb 2005 12:17:14 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j13BHENT011852 for ; Thu, 3 Feb 2005 12:17:14 +0100 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id MAA00808 for ; Thu, 3 Feb 2005 12:17:14 +0100 (MET) Received: from eset.msh.net (ns.insight.de [194.231.36.195]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j13BHDHf011848 for ; Thu, 3 Feb 2005 12:17:13 +0100 Received: from localhost (localhost.localdomain [127.0.0.1]) by eset.msh.net (Postfix) with ESMTP id 18D91CE0220; Thu, 3 Feb 2005 12:17:11 +0100 (CET) Received: from seshat.re-entry.de (xdsl-81-173-250-112.netcologne.de [81.173.250.112]) by eset.msh.net (Postfix) with ESMTP id 54BDCCE021E for ; Thu, 3 Feb 2005 12:17:03 +0100 (CET) Received: by seshat.re-entry.de (Postfix, from userid 500) id A2C6A56F97; Thu, 3 Feb 2005 12:17:02 +0100 (CET) Date: Thu, 3 Feb 2005 12:17:02 +0100 From: Michael Lahr To: caml-list@inria.fr Subject: Matching Unix_error Message-ID: <20050203111702.GA31877@re-entry.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Virus-Scanned: by amavisd-new at eset.msh.net X-Miltered: at concorde with ID 4202083A.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 42020839.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; client's:98 exception:01 unix:01 unix:01 expression:01 matched:01 matched:01 match:02 btw:02 output:02 string:03 string:03 raise:03 let:03 matching:06 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.2 X-Spam-Level: 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 --