From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:44635) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCNC2-0005Tz-FD for guix-patches@gnu.org; Thu, 12 Mar 2020 08:44:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCNC1-0002z9-KA for guix-patches@gnu.org; Thu, 12 Mar 2020 08:44:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50172) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jCNBx-0002qU-UG for guix-patches@gnu.org; Thu, 12 Mar 2020 08:44:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jCNBx-0001HQ-TE for guix-patches@gnu.org; Thu, 12 Mar 2020 08:44:01 -0400 Subject: bug#40016: [PATCH] inferior: Distinguish inferior exceptions. Resent-To: guix-patches@gnu.org Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20200310160305.15865-1-ludo@gnu.org> Date: Thu, 12 Mar 2020 13:43:41 +0100 In-Reply-To: <20200310160305.15865-1-ludo@gnu.org> ("Ludovic \=\?utf-8\?Q\?Cou\?\= \=\?utf-8\?Q\?rt\=C3\=A8s\=22's\?\= message of "Tue, 10 Mar 2020 17:03:05 +0100") Message-ID: <87ftedvj42.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 40016-done@debbugs.gnu.org Cc: Christopher Baines Ludovic Court=C3=A8s skribis: > This avoids ambiguities when looking at a backtrace where the exception > was actually thrown by an inferior in a very different context. > > * guix/inferior.scm (&inferior-exception): New condition type. > (read-repl-response): Add optional 'inferior' parameter. Raise > '&inferior-exception' instead of rethrowing to KEY when receiving an > 'exception' message. > (read-inferior-response): Pass INFERIOR to 'read-repl-response'. > * tests/inferior.scm ("&inferior-exception"): New test. Pushed as f7537e30b892cef09d91902547c00e5fa9b66f3b. Ludo=E2=80=99.