From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id B75087F75C for ; Sun, 14 Sep 2014 00:47:18 +0200 (CEST) Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of oliver@first.in-berlin.de) identity=pra; client-ip=192.109.42.8; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="oliver@first.in-berlin.de"; x-sender="oliver@first.in-berlin.de"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of oliver@first.in-berlin.de) identity=mailfrom; client-ip=192.109.42.8; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="oliver@first.in-berlin.de"; x-sender="oliver@first.in-berlin.de"; x-conformance=sidf_compatible Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@einhorn.in-berlin.de) identity=helo; client-ip=192.109.42.8; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="oliver@first.in-berlin.de"; x-sender="postmaster@einhorn.in-berlin.de"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AosBAADJFFTAbSoInGdsb2JhbABfhDuCeM8SFhABAQEBAQgLCQkUKoQtBBF2AhgOAokwBJdbjzSVMIEsjj6CYoFTBZ0Hh0OMI4MgIR6BW4M0AQEB X-IPAS-Result: AosBAADJFFTAbSoInGdsb2JhbABfhDuCeM8SFhABAQEBAQgLCQkUKoQtBBF2AhgOAokwBJdbjzSVMIEsjj6CYoFTBZ0Hh0OMI4MgIR6BW4M0AQEB X-IronPort-AV: E=Sophos;i="5.04,519,1406584800"; d="scan'208";a="78992485" Received: from einhorn.in-berlin.de ([192.109.42.8]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 14 Sep 2014 00:47:17 +0200 X-Envelope-From: oliver@first.in-berlin.de X-Envelope-To: Received: from yak (yak.in-berlin.de [192.109.42.109]) by einhorn.in-berlin.de (8.14.4/8.14.4/Debian-4) with ESMTP id s8DMlGS2026995 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 14 Sep 2014 00:47:16 +0200 Received: from e178025081.adsl.alicedsl.de (e178025081.adsl.alicedsl.de [85.178.25.81]) by webmail.in-berlin.de (Horde Framework) with HTTP; Sun, 14 Sep 2014 00:47:15 +0200 Date: Sun, 14 Sep 2014 00:47:15 +0200 Message-ID: <20140914004715.Horde.0vNRgNUsRsqsjnX3ZDjGPQ9@webmail.in-berlin.de> From: Oliver Bandel To: caml-list@inria.fr User-Agent: Internet Messaging Program (IMP) H5 (6.2.0) Content-Type: text/plain; charset=UTF-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline Subject: [Caml-list] With String.sub I need to catch "Bytes.sub" exception Hello, is this a known bug? Needed to change code from with Invalid_argument("Strings.sub") to with Invalid_argument("Bytes.sub") The code now looks like this and then works again: try if parser_url_len > 0 && parser_url = String.sub url 0 parser_url_len then parser_name else aux tl with Invalid_argument("Bytes.sub") -> aux tl (* this happens if url is shorter than parser_url *) Ciao, Oliver