From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/19095 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Bob Newell Newsgroups: gmane.emacs.gnus.user Subject: Re: How to trap an error when connecting to a news server Date: Sat, 4 Jan 2020 09:08:54 -1000 Message-ID: References: <1578146518407.757655@criptext.com> <1578146518407.757655@criptext.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7114466960653851799==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="140622"; mail-complaints-to="usenet@blaine.gmane.org" Cc: info-gnus-english To: gnus Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Sat Jan 04 20:09:15 2020 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1inonQ-000aJV-CW for gegu-info-gnus-english@m.gmane.org; Sat, 04 Jan 2020 20:09:12 +0100 Original-Received: from localhost ([::1]:36170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inonP-0001yE-8g for gegu-info-gnus-english@m.gmane.org; Sat, 04 Jan 2020 14:09:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35892) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inonM-0001y1-IX for info-gnus-english@gnu.org; Sat, 04 Jan 2020 14:09:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inonK-0001dI-LX for info-gnus-english@gnu.org; Sat, 04 Jan 2020 14:09:07 -0500 Original-Received: from mail-ot1-x329.google.com ([2607:f8b0:4864:20::329]:44654) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1inonK-0001a1-57 for info-gnus-english@gnu.org; Sat, 04 Jan 2020 14:09:06 -0500 Original-Received: by mail-ot1-x329.google.com with SMTP id h9so63102305otj.11 for ; Sat, 04 Jan 2020 11:09:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bobnewell-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9KmZs/FnCuSEkFeBaFUxCO9sItefRUfV/rT+HoA17SM=; b=OCjqslRTjN/WOI0cfx8a1+l/HqKN15CLcqiqC5d4XoSwYg+MOwF/Qs5IDx4HvA1Z7C 9FfGAegb8A3ffYx9RUhJkCYfv2e6LwhNGFGgtiijnKS0npFvxs9XLSAvdIWkcJQwNSMd 3Xh8PkSvQ9/S2QfAF9Zwoj/kRbUxXhRMjR1GK+6xBZR6aDu++zWcGvuzK3ShyvyHAAHv I/ZBc5I+pFUmVyXfJpRksAg3fmYdsR+D/Fp40QUz0udvgg4mxPCntR4Sgu06BZEgZYWZ 84/hBkhlGdU+Ux3EKsv/NjzDCBdRsetqMe1Y4vtfLLogm6HlvBa4mvV0+Agar3ye5ldR 42CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9KmZs/FnCuSEkFeBaFUxCO9sItefRUfV/rT+HoA17SM=; b=OszSHeu1h/E9uyP5u0TN6Akeq9dIBLQwRZ8Q/IIA1+Fe1zOPC/554Ysx/JgXZcResp 7xwNdsDW6LRG55kJbRKfaEozc5O/CMp+UiHseC9QqF1CMYwX4nf9oz1ROUmKwZfv6Dd9 a7MLfkWo0YjvzOUkPZTgFEyeB84cJg5O+Owe9gqiCVNXci0IJZePQXL20TV4DjfUMXUK 7fg5WCIWzHemYWO/6XKS+gV7Jc8SEcY1+wl8Q7sy1yRmBa6kzjz+TlsjlHewNPgkUXa2 xPCQ5ckheq0R5pGwJTDZSvrhy2SqdFhEwEps1B9gkJNbJjdKiGUfzchHzAYDbt5n5233 DRaw== X-Gm-Message-State: APjAAAVphY4QobEyonmGxxg6WvWnqgOp6QzBnFc99Iar568g+JzrBRap Lb1PH5KhU9ESUcn2Bt38JiY7qKJ7wjXCyfyI215U4w== X-Google-Smtp-Source: APXvYqzKN5AFoU0isNSBpg6bRXAqzT+As5gjiTW80DsL18cpKMGf1bfLzeB/yJeosyI0+FoNSgivrsizt2giXsoo68w= X-Received: by 2002:a9d:1b26:: with SMTP id l35mr63957357otl.307.1578164944975; Sat, 04 Jan 2020 11:09:04 -0800 (PST) In-Reply-To: <1578146518407.757655@criptext.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::329 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: "info-gnus-english" Xref: news.gmane.org gmane.emacs.gnus.user:19095 Archived-At: --===============7114466960653851799== Content-Type: multipart/alternative; boundary="000000000000f14a58059b55282a" --000000000000f14a58059b55282a Content-Type: text/plain; charset="UTF-8" > > > (defun news-check () > (condition-case err > (message "The result is %s" (gnus-group-get-new-news)) > (news-error > (message "I expect the server closed again %s",err) > ) > ) > ) > > I could be mistaken in this, but in your code above, where did you get > 'news-error' as the name of the error condition raised? I can't find this > anywhere in the gnus source tree. Do you know for sure that > gnus-group-get-new-news (or anything it calls) raises that condition? -- Bob Newell Honolulu, Hawai`i Via Linux/Emacs/Gnus/BBDB. --000000000000f14a58059b55282a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

(defun ne= ws-check ()
=C2=A0(condition-case err
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0(message "The result is %s" (g= nus-group-get-new-news))
=C2=A0=C2=A0=C2=A0(news-error
=C2=A0=C2=A0=C2=A0=C2=A0(message "I expect the server closed agai= n %s",err)
=C2=A0=C2=A0=C2=A0=C2=A0)
=C2=A0=C2=A0=C2=A0)
)

I could be mistaken in this, but= in your code above, where did you get 'news-error' as the name of = the error condition raised? I can't find this anywhere in the gnus sour= ce tree. Do you know for sure that gnus-group-get-new-news (or anything it = calls) raises that condition?

--
Bob Newell
Honolulu, Hawai`= i

Via Linux/Emacs/Gnus/BBDB.
--000000000000f14a58059b55282a-- --===============7114466960653851799== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KaW5mby1nbnVz LWVuZ2xpc2ggbWFpbGluZyBsaXN0CmluZm8tZ251cy1lbmdsaXNoQGdudS5vcmcKaHR0cHM6Ly9s aXN0cy5nbnUub3JnL21haWxtYW4vbGlzdGluZm8vaW5mby1nbnVzLWVuZ2xpc2gK --===============7114466960653851799==--