info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to trap an error when connecting to a news server


From: Bob Newell
Subject: Re: How to trap an error when connecting to a news server
Date: Sat, 4 Jan 2020 09:08:54 -1000


(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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]