From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 11 18:16:31 2022 Received: (at submit) by debbugs.gnu.org; 11 Jul 2022 22:16:31 +0000 Received: from localhost ([127.0.0.1]:41167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oB1he-0004lJ-MI for submit@debbugs.gnu.org; Mon, 11 Jul 2022 18:16:30 -0400 Received: from lists.gnu.org ([209.51.188.17]:38836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oB1hd-0004lB-GS for submit@debbugs.gnu.org; Mon, 11 Jul 2022 18:16:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oB1hd-0006DM-CL for bug-guix@gnu.org; Mon, 11 Jul 2022 18:16:29 -0400 Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]:45698) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oB1hb-0004zw-Qr for bug-guix@gnu.org; Mon, 11 Jul 2022 18:16:29 -0400 Received: by mail-qt1-x82d.google.com with SMTP id i21so6868472qtw.12 for ; Mon, 11 Jul 2022 15:16:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=Efqb6U2Z5aoh5GOcui+9pbtXUiJnxLurz/vEXwgCx0I=; b=g2dOhyz4TK0SWWo9ogfToluDhewbnEvJzCNgOvCRoS6dDmiUETRbPWY5dTkG12Wy3T W0TgnLgOn4oqf3AhD5NzdeghaFL9td0Au0M14BnEgJh74NYrTraEPhUg6LSdujH2c+FE F4ggtCVCAkDYM26iGMaxxVmB1nbPLK6DYIL4uzMBIDoFBwzQaY2D4sLyUmH9ZQimDmhA kAW09GgSleo7B455T82r2xscm3tr4wQIFfAEf2N8XEEde4fns0sHaLppetoTmlfKwSaG qWY/fARoFmvxIoDYBpLpKyhZd0TXCRMBfDZuj/umQokHgX4LyWAu631ybxUGh8tUGvmU JGRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=Efqb6U2Z5aoh5GOcui+9pbtXUiJnxLurz/vEXwgCx0I=; b=h6f+jvO92iKqY9Mq472ZuQSA6as9wFhlitrSp64/8Nd3R/vw7AUWvzn0f1RFp9T/R6 Ik4/fi80VExhtDwmUAdTyHauptXOCoufEnhuX046IZ+p4RqWN8xxRoe4fYQa4+ftl1Cp U6cmGyXBPz84O298tFbgokPOMJORTl5GMXdVH8ld6IoEtreWf524PK5D3UmyL4DGsWDO Fki6F7uhrWL5m8sclWW0IMlmERSAYCtQ7LS0G5YOVZVV9o1uAUVS03frKD4C6ocy7WQr gepbxTDPfVsOdfYbfsHAC1bCA0ytiP4zb90tR3f5TsdiGfEErPOSmO4mg02UZk6f5C9C QgWQ== X-Gm-Message-State: AJIora/sbBmGlOlwaW9/l26Np1alFJme62UqL4W7Bz1amQXDYXc/HBjN lE3tgPk6V9IM2IUu5YC1NA4XxPCXTevVQpm7 X-Google-Smtp-Source: AGRyM1vzMegOxUSadIkV2coP0Fw55IXaIhQ6k2BXvNey3T0d+YrxhRzukd1F9gv7+o45lcaXxGYrWg== X-Received: by 2002:a05:622a:649:b0:31e:aaf9:a262 with SMTP id a9-20020a05622a064900b0031eaaf9a262mr11531363qtb.275.1657577786327; Mon, 11 Jul 2022 15:16:26 -0700 (PDT) Received: from hurd (dsl-155-226.b2b2c.ca. [66.158.155.226]) by smtp.gmail.com with ESMTPSA id g7-20020a05620a40c700b006b1490619cdsm7604164qko.99.2022.07.11.15.16.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jul 2022 15:16:26 -0700 (PDT) From: Maxim Cournoyer To: bug-guix Subject: Poor error message on missing file using substitute* Date: Mon, 11 Jul 2022 18:16:25 -0400 Message-ID: <87r12r9txi.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::82d; envelope-from=maxim.cournoyer@gmail.com; helo=mail-qt1-x82d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hello Guix, When substitute* encounters a nonexistent file, the error is reported to the guix CLI like so: --8<---------------cut here---------------start------------->8--- error: in phase 'bake-tor': uncaught exception: system-error "mkstemp" "~A" ("No such file or directory") (2)=20 phase `bake-tor' failed after 0.0 seconds Backtrace: 11 (primitive-load "/gnu/store/0i9iay6rahmps8by40aja6qz1fv=E2=80= =A6") In guix/build/gnu-build-system.scm: 906:2 10 (gnu-build #:source _ #:outputs _ #:inputs _ #:phases . #) In ice-9/boot-9.scm: 1752:10 9 (with-exception-handler _ _ #:unwind? _ # _) In srfi/srfi-1.scm: 634:9 8 (for-each # =E2=80=A6) In ice-9/boot-9.scm: 1752:10 7 (with-exception-handler _ _ #:unwind? _ # _) In guix/build/gnu-build-system.scm: 927:23 6 (_) In ice-9/eval.scm: 619:8 5 (_ #(#(#) (# # =E2=80=A6)= )) In srfi/srfi-1.scm: 634:9 4 (for-each # _) In guix/build/utils.scm: 843:19 3 (with-atomic-file-replacement "desktop/src/onionshare/=E2=80= =A6" =E2=80=A6) In unknown file: 2 (mkstemp! "desktop/src/onionshare/gui_common.py.XXXXXX" #) In ice-9/boot-9.scm: 1685:16 1 (raise-exception _ #:continuable? _) 1685:16 0 (raise-exception _ #:continuable? _) ice-9/boot-9.scm:1685:16: In procedure raise-exception: In procedure mkstemp: No such file or directory note: keeping build directory `/tmp/guix-build-onionshare-cli-2.5.drv-0' --8<---------------cut here---------------end--------------->8--- The main error message, "system-error "mkstemp" "~A" ("No such file or directory") (2)" is malformed and doesn't report the actual file which is missing; one must decipher the backtrace for clues as to which file caused the error. We should improve it :-). Maxim From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 13 06:23:41 2022 Received: (at 56503) by debbugs.gnu.org; 13 Jul 2022 10:23:41 +0000 Received: from localhost ([127.0.0.1]:44506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBZWv-0001UI-4p for submit@debbugs.gnu.org; Wed, 13 Jul 2022 06:23:41 -0400 Received: from out3.mail.ruhr-uni-bochum.de ([134.147.53.155]:24260) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBZWs-0001Tz-T2 for 56503@debbugs.gnu.org; Wed, 13 Jul 2022 06:23:40 -0400 Received: from mx3.mail.ruhr-uni-bochum.de (localhost [127.0.0.1]) by out3.mail.ruhr-uni-bochum.de (Postfix mo-ext) with ESMTP id 4LjYcN0Rrtz8SFx; Wed, 13 Jul 2022 12:23:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ruhr-uni-bochum.de; s=mail-2017; t=1657707812; bh=V1WnYgpYKvqex6hgeaIFKc/Etw6lHi+E5zQgM0VwGxM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=JlqpC2S7H5G0OLroXtIc2kFpNPQUKyQCXgLe4tMbbiTebPM3G6G8g2+vN/ngvJaEg wQv+Ry1EUVbe6DGiucIrMA4mYjYJUd1IYGVQGUx/LSkfQemTKO7knRZvtKE3TsFTXK 8SLOycjDNK4JhZwkYMw+PLfk/33c3ycAxtZSLUuA= Received: from out3.mail.ruhr-uni-bochum.de (localhost [127.0.0.1]) by mx3.mail.ruhr-uni-bochum.de (Postfix idis) with ESMTP id 4LjYcM6pCHz8SFh; Wed, 13 Jul 2022 12:23:31 +0200 (CEST) X-Envelope-Sender: X-RUB-Notes: Internal origin=134.147.42.236 Received: from mail2.mail.ruhr-uni-bochum.de (mail2.mail.ruhr-uni-bochum.de [134.147.42.236]) by out3.mail.ruhr-uni-bochum.de (Postfix mi-int) with ESMTP id 4LjYcM5JCpz8SFt; Wed, 13 Jul 2022 12:23:31 +0200 (CEST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.104.1 at mx3.mail.ruhr-uni-bochum.de Received: from xii-04 (pm26.mg07.ruhr-uni-bochum.de [10.150.49.41]) by mail2.mail.ruhr-uni-bochum.de (Postfix) with ESMTPSA id 4LjYcM2g2NzDh1C; Wed, 13 Jul 2022 12:23:31 +0200 (CEST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.104.2 at mail2.mail.ruhr-uni-bochum.de From: =?utf-8?Q?Daniel_Mei=C3=9Fner?= To: Maxim Cournoyer Subject: Re: bug#56503: Poor error message on missing file using substitute* References: <87r12r9txi.fsf@gmail.com> Date: Wed, 13 Jul 2022 12:23:31 +0200 In-Reply-To: <87r12r9txi.fsf@gmail.com> (Maxim Cournoyer's message of "Mon, 11 Jul 2022 18:16:25 -0400") Message-ID: <8735f51fbw.fsf@ruhr-uni-bochum.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 56503 Cc: 56503@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Maxim Cournoyer writes: > When substitute* encounters a nonexistent file, the error is reported > to the guix CLI like so: > > [...] > > The main error message, "system-error "mkstemp" "~A" ("No such file or > directory") (2)" is malformed and doesn't report the actual file which > is missing; one must decipher the backtrace for clues as to which file > caused the error. > > We should improve it :-). I am Guix and Guile newbie but looking at the definition of the procedure =E2=80=98with-atomic-file-replacement=E2=80=99 I think we have to= catch the (possible) exception of the call to =E2=80=98mkstemp!=E2=80=99 and provide = a custom error message. This is because the exception thrown by =E2=80=98mkstemp!=E2=80=99 does not= contain any information about which file was tried. Try this snippet in a Guile REPL: --8<---------------cut here---------------start------------->8--- (with-exception-handler (lambda (x) (write x) (newline)) (lambda () (mkstemp! "/non/existing/path/foo.XXXXXX"))) --8<---------------cut here---------------end--------------->8--- It prints: --8<---------------cut here---------------start------------->8--- #<&compound-exception components: (#<&external-error> #<&origin origin: "mk= stemp"> #<&message message: "~A"> #<&irritants irritants: ("Datei oder Verz= eichnis nicht gefunden")> #<&exception-with-kind-and-args kind: system-erro= r args: ("mkstemp" "~A" ("Datei oder Verzeichnis nicht gefunden") (2))>)> --8<---------------cut here---------------end--------------->8--- So maybe this is a bug in Guile? Shouldn=E2=80=99t =E2=80=98mkstemp!=E2=80= =99 list the path in the irritants? Best --=20 Daniel From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 13 15:46:45 2022 Received: (at 56503) by debbugs.gnu.org; 13 Jul 2022 19:46:45 +0000 Received: from localhost ([127.0.0.1]:47801 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBiJo-0006Bd-Pw for submit@debbugs.gnu.org; Wed, 13 Jul 2022 15:46:45 -0400 Received: from mail-ej1-f68.google.com ([209.85.218.68]:45981) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oBiJn-0006BR-41 for 56503@debbugs.gnu.org; Wed, 13 Jul 2022 15:46:43 -0400 Received: by mail-ej1-f68.google.com with SMTP id t1so5938519ejd.12 for <56503@debbugs.gnu.org>; Wed, 13 Jul 2022 12:46:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=2mT4BdpVN3uTHTsaAR01FdXrzYJnWgDLjjTo4Lc98Hg=; b=kPZzbX96eyvziATN16UMaSfgXNz0btYltP2TeT+NVDvG97Jpj7au2zeWFMfblSTRAm Z2Vckf5LbnmCTqukc6/wtrgNXUZB4zlrMCdO/ACxRnW9a7ZJqXjtFfedBIv3MJjtxJ0f 16lDgRf7++wmuMxGCx37LUcZlq6d7Ym8+AHDmRXLLtFFTQ0Eb2xqe0SE+j1ht5N+pRio n11IVXsaghrdCx3JahVijDZFIZ4sftDFvq6IaJJIG5IT7uGnYJhlbL4VaPGTnPcA7wXm VS06ofUkSpsXdfWA7w0VhCAv7iu809Mib6cUbTXg7Hc6oR5StWJoRYGF64l/kIpljnhA 6dxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=2mT4BdpVN3uTHTsaAR01FdXrzYJnWgDLjjTo4Lc98Hg=; b=Myv+VZ4LKVG1IM+fzl5dDh02PwsaB0R4xLkR/WhyFPMNbLBQWFortQoB2WdA4E8Ukx Rxhh1HTwMuVcrLvMAAJ9+aT6njQqRv6rIS/CTXWueIP/LDbZYBTHiUe5C3iCBAxwMzub IqG75QM/O61tWT2L6H/B8ewduyHUYTLvEwu5T1w8cnfKXI85AcmYRvNBRGlS2SQgUIgw 3Pj82mOXMEdZyvoq5G9Q4wOmwN99eAd35qBzmqdxr5M596L73yBQFNgC0rwpCocWWK2u l9i8vu8n/ZujKzHu+unkSSDFc+2q5f+M9TbsP9046SoDslHxRqeFRj1pVgI2fuCRcP9g nKaA== X-Gm-Message-State: AJIora9Yq1rJfIrZAKM/X7BoexKirMCN91s4wqg+4+z0nqbCCpk39ZqM eWOXy8JvxrjmWwcEBUB+p0g= X-Google-Smtp-Source: AGRyM1u7rb/ujEuIODs9Wm7eVNOmcLBB7gIjVtaarUnJvzZvGkiBtoy2C9CZKuO+ocizL27DNFss0A== X-Received: by 2002:a17:906:6d98:b0:715:76eb:9e33 with SMTP id h24-20020a1709066d9800b0071576eb9e33mr5292412ejt.729.1657741597293; Wed, 13 Jul 2022 12:46:37 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id s10-20020a170906354a00b00705cdfec71esm5341038eja.7.2022.07.13.12.46.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jul 2022 12:46:36 -0700 (PDT) Message-ID: <92fd1571a14de00c9c1deaf2138187ba0530c7eb.camel@gmail.com> Subject: Re: bug#56503: Poor error message on missing file using substitute* From: Liliana Marie Prikler To: Daniel =?ISO-8859-1?Q?Mei=DFner?= , Maxim Cournoyer Date: Wed, 13 Jul 2022 21:46:35 +0200 In-Reply-To: <8735f51fbw.fsf@ruhr-uni-bochum.de> References: <87r12r9txi.fsf@gmail.com> <8735f51fbw.fsf@ruhr-uni-bochum.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 56503 Cc: 56503@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Am Mittwoch, dem 13.07.2022 um 12:23 +0200 schrieb Daniel Meißner: > Hi, > > Maxim Cournoyer writes: > > > When substitute* encounters a nonexistent file, the error is > > reported > > to the guix CLI like so: > > > > [...] > > > > The main error message, "system-error "mkstemp" "~A" ("No such file > > or > > directory") (2)" is malformed and doesn't report the actual file > > which > > is missing; one must decipher the backtrace for clues as to which > > file > > caused the error. > > > > We should improve it :-). > > I am Guix and Guile newbie but looking at the definition of the > procedure ‘with-atomic-file-replacement’ I think we have to catch the > (possible) exception of the call to ‘mkstemp!’ and provide a custom > error message. > > This is because the exception thrown by ‘mkstemp!’ does not contain > any > information about which file was tried.  Try this snippet in a Guile > REPL: > > --8<---------------cut here---------------start------------->8--- > (with-exception-handler (lambda (x) (write x) (newline)) >   (lambda () >     (mkstemp! "/non/existing/path/foo.XXXXXX"))) > --8<---------------cut here---------------end--------------->8--- > > It prints: > > --8<---------------cut here---------------start------------->8--- > #<&compound-exception components: (#<&external-error> #<&origin > origin: "mkstemp"> #<&message message: "~A"> #<&irritants irritants: > ("Datei oder Verzeichnis nicht gefunden")> #<&exception-with-kind- > and-args kind: system-error args: ("mkstemp" "~A" ("Datei oder > Verzeichnis nicht gefunden") (2))>)> > --8<---------------cut here---------------end--------------->8--- > > So maybe this is a bug in Guile? Shouldn’t ‘mkstemp!’ list the path > in the irritants? IMHO this matters little, as one can let-bind the filename or (as we do it) take it as argument. The reason Guile does not report it is probably because it's converted from a POSIX errno, which lacks that context :) What's a little more confusing is that a throw-handler is installed directly after mkstemp!, which re-raises the exception. This is an alternative way of failing when the file does not exist, as it wraps call-with-input-file. Cheers From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 18 08:57:17 2022 Received: (at 56503) by debbugs.gnu.org; 18 Jul 2022 12:57:17 +0000 Received: from localhost ([127.0.0.1]:49493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDQJJ-0004Jc-Gp for submit@debbugs.gnu.org; Mon, 18 Jul 2022 08:57:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49486) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oDQJI-0004JQ-B7 for 56503@debbugs.gnu.org; Mon, 18 Jul 2022 08:57:16 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36544) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDQJC-0000X2-E0; Mon, 18 Jul 2022 08:57:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=ukYv7/kqqL2iO9UUPkZWDoRH7k03XE0QY9sg7Z4IF+Y=; b=Jc9LKRoJGzw+56LHom2L 0X6qnQi5pN8Vwpv3PNISb4v7eTkClOm2NXkudpHYNdYoczB45/m30+ofmBfBjOOrP25Zf5xED6sbG /4wQw+Rcpsopya62gEZKJgWsbaWCyPnTjUmFis1zOsnNtIjlsCH2KKOIAmBp3WamKfO/qLgtbMBSc isyBMV6Aao0oER3ikz9H6GCcSsqntUKtGnZuGtji+yCVQsWif3dHedgcmooh94u6WCfBIBpEaTpSO oPwlmG4ADHWKGmGFD7meZIwJTILJXL0E2bdiZk93U98jtL8J5yjJZLXeBTeZ4H1OGA2nKAhdr4N3F dN5feqM7Jn0HhA==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (port=51732 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDQJC-0000xs-13; Mon, 18 Jul 2022 08:57:10 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Daniel =?utf-8?Q?Mei=C3=9Fner?= Subject: Re: bug#56503: Poor error message on missing file using substitute* References: <87r12r9txi.fsf@gmail.com> <8735f51fbw.fsf@ruhr-uni-bochum.de> Date: Mon, 18 Jul 2022 14:57:08 +0200 In-Reply-To: <8735f51fbw.fsf@ruhr-uni-bochum.de> ("Daniel =?utf-8?Q?Mei?= =?utf-8?Q?=C3=9Fner=22's?= message of "Wed, 13 Jul 2022 12:23:31 +0200") Message-ID: <877d4azihn.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 56503 Cc: 56503@debbugs.gnu.org, Maxim Cournoyer X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Daniel Mei=C3=9Fner skribis: > It prints: > > #<&compound-exception components: (#<&external-error> #<&origin origin: "= mkstemp"> #<&message message: "~A"> #<&irritants irritants: ("Datei oder Ve= rzeichnis nicht gefunden")> #<&exception-with-kind-and-args kind: system-er= ror args: ("mkstemp" "~A" ("Datei oder Verzeichnis nicht gefunden") (2))>)> > > So maybe this is a bug in Guile? Shouldn=E2=80=99t =E2=80=98mkstemp!=E2= =80=99 list the path in > the irritants? Yes, it should, but it=E2=80=99s a change that=E2=80=99s probably not safe = to do within a Guile stable series. For the record, (guix ui) works around this for selected procedures=E2=80= =94look for =E2=80=98error-reporting-wrapper=E2=80=99. These are not used (and can= not be used) in (guix build utils) though. Ludo=E2=80=99.