From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id UMNBCtLWEmGfEwEAgWs5BA (envelope-from ) for ; Tue, 10 Aug 2021 21:43:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id +M0pBtLWEmFbWwAA1q6Kng (envelope-from ) for ; Tue, 10 Aug 2021 19:43:14 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2566C5CE8 for ; Tue, 10 Aug 2021 21:43:13 +0200 (CEST) Received: from localhost ([::1]:38460 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDXea-0006h0-7F for larch@yhetil.org; Tue, 10 Aug 2021 15:43:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39126) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDXdi-0006go-30 for emacs-orgmode@gnu.org; Tue, 10 Aug 2021 15:42:18 -0400 Received: from mx0a-00395d01.pphosted.com ([148.163.133.170]:34540) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDXdf-00055y-04 for emacs-orgmode@gnu.org; Tue, 10 Aug 2021 15:42:17 -0400 Received: from pps.filterd (m0173168.ppops.net [127.0.0.1]) by mx0a-00395d01.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 17AJbNY2014200; Tue, 10 Aug 2021 12:42:11 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsd.edu; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=campus; bh=3vEZR5q/mHjbCMNxN9awfMjfLek5Ib9bpt1YxR+RVU8=; b=fIk/NLaco/MEJ7YbSu6nNYHAXpup3rv2ivEeH0A9KbUFmxVid29/cFMzmNPp47MBnYQ5 NkLh6/H//6eUoUr1OOwtRTwlMKwaHGdRu70c2Mx+6Ig5poxarRI84zKXTKnjIZfyHQcC G2yksnpTIrXNB4Ipu+3J1Q0Uc1/H/deuyyUgtseBBuIm1RutqFPJJgUiMxWp6cbS7pas 31NO3Ll5Y3NJmnaN+HjJ355sui9yleyr5UEUvYeO9KpTLOJYZtssiY1uu9guZ+2GtghQ 6k2mU1p2Uz//t4bgI16UeMjGMkgV+BZomObIVtcKpKZcNO5Ye/Y5H18hpjtZY1A1zqT9 8g== Received: from secdlpezp04.ucsd.edu ([40.112.251.180]) by mx0a-00395d01.pphosted.com with ESMTP id 3abw2v0k0j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 Aug 2021 12:42:10 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QdRAYjKfyguhtbNo5DHPYeKSvaDzH1jdecXSQsCdopKhPtW0Fi0fXoHQeryp8S9RP4xTQ37hiAtkD24yQwy7YT864hfAmODpnH6GppOSTGyDDIBhsrwSVqE2p2Dl8nIThHnhepjarOVlCjo8I4W5k0p13WJJHNhBcaPekujQIdh/cRu14lz8n+f8/O2TQbSjvR7DxdZll9oZ4sQLFYpfMv9JxvPVCt/fOLacUJ47talu8rSGzsfy9n+yG7sxLEaIQ7Ak5CqgmMPJYNW82xGs0/uMd7OBNNPVPVNXRIo2/J8ptDKdeWz6j+vt0gcQmSnVReZosugLnWHyuN9Wa1bL8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3vEZR5q/mHjbCMNxN9awfMjfLek5Ib9bpt1YxR+RVU8=; b=LBFsol8fvhT5L4tJf1ZioVe+MsbHQI9W119iSPPY+9j9Te6ci7JQ8rCxnMoLTchc4+HzjQPDtdduu06F3MZg0jjG4gL1/Dayw+apLMuhJAK5n1JBMzdJsEqbFqMGx9/YDnKJRTgfF4GkTecOWaZEDApVjIENoN72yxQ/3VTdondfsgslaqxRmu/67n4NMcL0kW+a/afuRUlsZGjIMMXqwh19TUnR+2EVmsaN8+lFg76+qRfn4N+6mnzoBkcWQZCHyZTpFUWpn7bsGBG6hHyCKqU/VVtrvzfS72UCmttgp+ml78QGLk+eKSho3wL0pZB9q5eCvK7Fb+Q0etKAak2CmQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=health.ucsd.edu; dmarc=pass action=none header.from=health.ucsd.edu; dkim=pass header.d=health.ucsd.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsdhs.onmicrosoft.com; s=selector2-ucsdhs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3vEZR5q/mHjbCMNxN9awfMjfLek5Ib9bpt1YxR+RVU8=; b=x64i9VfYKjSwNj0x7ZP7cJvlpCwk0dduGvOHzkXkehfxohJhtSrYrc97eD4JNFRzDhKDU+CD2uVSHyKdz4ux/sBj8RDI2L1pi12v2/rdcCyvZPPLbkYOe/8/2DwLwm81YA9JPJ+T+7EOBHiMSPsWGIM3uKJThoYW4VI04WUzW4k= To: James Powell Subject: Re: bug: Error handling in source blocks. Thread-Topic: bug: Error handling in source blocks. Thread-Index: AQHXjh/N3itVUfe3YUu63iRqry+wjQ== Date: Tue, 10 Aug 2021 19:42:07 +0000 Message-ID: References: <3ac06f2a-c14b-593f-a6e2-8e1c85c19436@pdx.edu> In-Reply-To: <3ac06f2a-c14b-593f-a6e2-8e1c85c19436@pdx.edu> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: fe9f92e7-562a-49b6-43b2-08d95c36efd6 x-ms-traffictypediagnostic: BY5PR19MB4052: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 65Tu9mJttl1Wz7nfbq3xmeyOgsn190+fcydQusZXTyWTUlw5sAfTDETRHXS2pfpXitqF7hSIDEX2zReObAkTo85cWh9E3qhePilN7q6sCm9qLsrDd9lGBFXL9sHzKUJXKXPqQZ2aC75sgtTICbu/1ImAFmHBLixxRioT+3x8EPIfd1mdb1GyQ5idDmyTgJfGr6kh/4VobwVJ+3oA/101GIORFvlvWCEKJbsN6nCgVVjFYFweG85XqX4unuBaGa/Ro9Ajx14WfSJUhpSy2PN+ByE1LIbhmUpNOwe/z8C9ka+zXXsRjnbFjRHZ7z8TQfMacQKJlnHzAP9Im3wbHTjIgzKZ6XTuS1ZQEtZDSRDDMcbl4OYhKyEGbe3Hao5hit1Hzcsh6HkZ4mfD9LtzuScBFdC9NpeDiYkjNkTiLpByKNkuo6kBg921doDcpU1fSeZju214qP5Lpf6v/K1VQ2opmXflIBXDWtcqyjfzHAgTKpK7W+DbB4JPDnBKSizx7Sj6OeMUL2MEhJZr1hFxLJ+4EaGx7IsuVhrVz048QyE2PK0qFf1AXKVyRsDvsLLZdsEosUbgg23/vkXuFJ5JIhtXaaZNOth1lIYobVPlAbQs9G7RRAxFeUnF/8I+ocnqmXV+55ngM/jVGiRYoiGKxSug4AiAmWMpIysjr+hHU/H9jRzw0s1nm2lkiM7b7NDyEouwFyQ/71zkq60VDntBUuF82UNJXZL6YLqbYEyr5P6yyFs= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR19MB2581.namprd19.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(366004)(346002)(396003)(39860400002)(376002)(316002)(786003)(2616005)(5660300002)(2906002)(53546011)(4326008)(4744005)(6916009)(33656002)(8936002)(8676002)(6506007)(75432002)(6512007)(186003)(38070700005)(6486002)(71200400001)(76116006)(86362001)(66476007)(66556008)(66446008)(122000001)(478600001)(83380400001)(66946007)(64756008)(38100700002)(45980500001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?aRyAMc+wPcQO2c8B6wuNptXJc7OpiYZlaJQJofH8IR/ATTzUcFd7aFfZrZiQ?= =?us-ascii?Q?+JK4S/fJ3xC1S6lNBG/61nRXNtXEUytdv9ZfEpqEtdTS/TcLin2shXDl/ssk?= =?us-ascii?Q?F8JfC34pe2k7CsJPVmNcwgHATm53ADX0+fW00zLaBRhx3VYK4G2rwSXbs4Z/?= =?us-ascii?Q?mvQ9pCoegcMqSOKhgHjatCvEB7OXMMFWqNQKhZbWlYW2rl2mys2rND0Mo6oe?= =?us-ascii?Q?fHI68fDboVTI6e7HRHrYtFX/0V7Ztx5qO1n8C6Y6PzVPyJD9F21h0sKqeiFy?= =?us-ascii?Q?yYb89gV4AyMFL1yCqTv5P3tq/PwnR989u4EstnzOtEgBEY41DPbfz9cwJrnc?= =?us-ascii?Q?pK9/uGmPoo+yFXapAh5hmWHdKD2ltcLaHlL/Z9bBPQ8U14RPcc8SKCMHuEt4?= =?us-ascii?Q?DQurnJdvJRywvqn/p157xmVRIuvKD65slhGBVmgS879GtetalvfrbaAuWrSp?= =?us-ascii?Q?F595eT/AuA0cGukS5w2AsQOFjI44tQAY9XP2diZf8XWwiZQ8cpdebKezXp8q?= =?us-ascii?Q?PuyDIiyegGidYvFoWSzkbXjNW8q43bpafeAaCQ12uvk6deyigNZjADC/jmjP?= =?us-ascii?Q?uZZWD2O5MpgLnKH1PhJ3sV6EHyERpnSeqstNcVv8veqOJwY+BXjHSo+/1MHB?= =?us-ascii?Q?oV4JKVHm6wZpd5RYaGmo9InYW4PyUO41mp/FSFKqSKxNDaPZd8G/hAoEdJWd?= =?us-ascii?Q?tiwPc6KrsG4ClO9cblI8K9B15SzZ7TYO6/XQMCP5iClqKJQuU7HIqgVf5x6E?= =?us-ascii?Q?L5YlrGsehIKd7r+okh8/ZvOkP/aG5DonBTtFM95as+P9bE3/3oR4KfMEGt01?= =?us-ascii?Q?w/KP3uMoSxVtBFpkZ7RNY4XqbW+0DV+mt6tc+sAJr71B9zSEn1l0EYjTus0P?= =?us-ascii?Q?rlI5t+yaG7jBV2hV7LB30qMzLsUj6yh3WqFW/af155I/kgG0N5AG15Fi4sFR?= =?us-ascii?Q?3lCPedONdAXLLF/qt3OcgxE47tH7WrHrYQDFHqQV74nWUOOVqgQCnGQZe0SS?= =?us-ascii?Q?rJszh69Jg+lNOeYX+bVqZeGvKUUO6GLLGvwh7zubcMoJ9ggOhGpZ/tR0to/U?= =?us-ascii?Q?pGAcXGbthRkyoy3siQyk4I1i5R3ldpx3U8cbjkbDIUuDHwe1qfKJqW1tPNO6?= =?us-ascii?Q?UOpXTHPCPpEhgRhHsQAICK3sxvd3JKNopUJEJPWfcXIysDL4iGAQ4Q+JYJNH?= =?us-ascii?Q?dCAWYA7kLn/lcE6H+IcSHVLDs8pQlmIH7278gyAi+e9IHff5i0/zCv3rmIq2?= =?us-ascii?Q?ReozxpjKavQpE5ey9PLNdECwdSEjAa1OsbwdY4lLTFrAbkBC+FFU0fqCBgp8?= =?us-ascii?Q?7kMt9R3HKs6i6yIdSLQYjE2Tiqdkhxi3zYYrArw29FyhVrB1q4KbqPeyy0w3?= =?us-ascii?Q?Iv0EHDlL1Be/B4O5QE3O08C/YEyD?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: <41AA15E5604A2B4CB1D97A015C64BF3D@namprd19.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: health.ucsd.edu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR19MB2581.namprd19.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: fe9f92e7-562a-49b6-43b2-08d95c36efd6 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Aug 2021 19:42:07.0172 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e470d736-e7f7-41a8-8eab-dad544b2b579 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 2k9fEHe6UWZXVY1Ce/Hqvs896cjxNzblpsvrMEugj3+a6O8JCR4emVUP2rAe624gnI07CCURK94fChxqUgO0BA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR19MB4052 X-Proofpoint-ORIG-GUID: anZAkKxYBatodz3fX43k2ih52_GEEWg1 X-Proofpoint-GUID: anZAkKxYBatodz3fX43k2ih52_GEEWg1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790 definitions=2021-08-10_08:2021-08-10, 2021-08-10 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1011 mlxlogscore=401 spamscore=0 adultscore=0 suspectscore=0 phishscore=0 mlxscore=0 malwarescore=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2108100129 Received-SPF: pass client-ip=148.163.133.170; envelope-from=ccberry@health.ucsd.edu; helo=mx0a-00395d01.pphosted.com X-Spam_score_int: -11 X-Spam_score: -1.2 X-Spam_bar: - X-Spam_report: (-1.2 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, LOTS_OF_MONEY=0.001, MONEY_NOHTML=0.826, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "emacs-orgmode@gnu.org" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" Reply-to: "Berry, Charles" From: "Berry, Charles" via "General discussions about Org-mode." X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628624593; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=3vEZR5q/mHjbCMNxN9awfMjfLek5Ib9bpt1YxR+RVU8=; b=b0DpZ7BAtOghMqv/hyvVJTVOc6eTSc9aOmJoO9LExvkTMBFDHG+AGm82BwAeOpUMfflLnr JAeUzliUQI53gQHwxQE02DSNW6xutmf5xrNgpuvVzF0APCa6YbYBmHNwSYdK/wuSGzPsVk DI+/edgrx1tCh+VPNgTd8y8LiSC4Kg8BEopguOl4w5xeUhmsYOYxYazTAe7iDjDOHSzLO4 aJXyMoWwi+cDC0cmz9QWP4iurV9+mrkLPaMPhGj0Q+DZTyqAHSXwp2xSdNjl+SjydYS3HP mdnP4ujDZZXZfTddhtjAXfAfCAQt7E+X4jnIsa2JBrzaDlS5oKmgRkMourjhzQ== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1628624593; a=rsa-sha256; cv=fail; b=Svd1LUvftXa7O5sPiJzRHUYgZKoC0H03VWcDnTOraEVc0hmV257czY7e4HF2ISiEe0MyQg uzxoDqD9bP8ISeXoJd9U4kph32CKLmcWu8whln960/uqg9iugqUJEZH+2vTBvnJhoINgpf Bs0bN8Hxz7FM5S8aqMFZiGt87HDUKpfwcEPA5k2UUhvyJsR/lQxHmNSQ6aP3fUw6n3v4on FKMe96kgwPKvLv78mh9NqGXz2UbWFLWYQIGGU/V3QRLfoO1QzDjtcj+kaS34mMEFh8L5IG 3sSE0/j/3PK6OKhwy+fbz789sngb4hsbeB0RBL0+OtGj9ECy0fFo6lDHbpzvXg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ucsd.edu header.s=campus header.b="fIk/NLac"; dkim=fail ("headers rsa verify failed") header.d=ucsdhs.onmicrosoft.com header.s=selector2-ucsdhs-onmicrosoft-com header.b=x64i9VfY; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -0.91 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ucsd.edu header.s=campus header.b="fIk/NLac"; dkim=fail ("headers rsa verify failed") header.d=ucsdhs.onmicrosoft.com header.s=selector2-ucsdhs-onmicrosoft-com header.b=x64i9VfY; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 2566C5CE8 X-Spam-Score: -0.91 X-Migadu-Scanner: scn1.migadu.com X-TUID: RH5gGdjP6X46 > On Aug 9, 2021, at 9:13 PM, James Powell wrote: >=20 > Error handling is important and hard to get right. Me, I prefer to > treat every warning as an error (-Werror in gcc, "options(warn=3D2)" in > R, etc). I want the system to grind to a halt at the least sign of > trouble. If the effect of an error is to return no result (as in your example), you = can use a :post header-arg to check for a nil value in `*this*' and issue a= user-error.=20 Example: #+name: check-res #+begin_src emacs-lisp (or *this* (error "nil result"))=20 #+end_src #+begin_src R :exports both :post check-res() x <- fffff838293483$x8483848 #+end_src See (info "(org) Results of Evaluation") and scroll to `post-processing' fo= r details on the :post header. The user-error halts export. HTH, Chuck