unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: emacsq via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Robert Pluim <rpluim@gmail.com>
Cc: 53762@debbugs.gnu.org, Lars Ingebrigtsen <larsi@gnus.org>
Subject: bug#53762: Improve error message when during url retrieving network connection is lost
Date: Mon, 07 Feb 2022 16:48:57 +0000	[thread overview]
Message-ID: <hzxiqX9CoYcJk42RDi79EsaSIKp3cikZPN9_CLx5uJVpV9VrOHG97xOiuyKwr4WAzEoHlU3jiY_kPiKJGJ-rnjiEpe0XykHdvbJ8gYrLFAs=@protonmail.com> (raw)
In-Reply-To: <87bkzi93vh.fsf@gmail.com>

> Sure, that can be done. Does the patch actually solve the problem,
emacsq?

We have information if it's a network connection: if (NETCONN_P (proc))

So using that we can improve the message. Something like:

if (NETCONN_P (proc))
  "Network error: <process> <error message>"
else
  "Process <process> not running: <error message>"







  reply	other threads:[~2022-02-07 16:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-03 19:30 bug#53762: Improve error message when during url retrieving network connection is lost emacsq via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-02-04  9:50 ` Robert Pluim
2022-02-05  6:57   ` Lars Ingebrigtsen
2022-02-07 13:56     ` Robert Pluim
2022-02-07 16:48       ` emacsq via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-02-08  8:40         ` Robert Pluim
2022-02-08 21:50           ` emacsq via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-03-16 17:59             ` Robert Pluim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='hzxiqX9CoYcJk42RDi79EsaSIKp3cikZPN9_CLx5uJVpV9VrOHG97xOiuyKwr4WAzEoHlU3jiY_kPiKJGJ-rnjiEpe0XykHdvbJ8gYrLFAs=@protonmail.com' \
    --to=bug-gnu-emacs@gnu.org \
    --cc=53762@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=laszlomail@protonmail.com \
    --cc=rpluim@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).