From: Richard Copley <rcopley@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Stephen Leake <stephen_leake@stephe-leake.org>,
Emacs Development <emacs-devel@gnu.org>
Subject: Re: gnutls on mingw64
Date: Fri, 29 Nov 2019 08:32:01 +0000 [thread overview]
Message-ID: <CAPM58ogY_8NQ30hmhJa6C1yxNa+2aw-zsK-xX6PDKKYmZ3Mp3w@mail.gmail.com> (raw)
In-Reply-To: <83eexrp2w9.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1782 bytes --]
> On Thu, 28 Nov 2019 at 21:08, Stephen Leake <
stephen_leake@stephe-leake.org> wrote:
> > The most common error I get is "file not found" because
> > PATH is wrong or the file is not installed, when it's perfectly clear
> > that the system knows the name of the file it's looking for, but _I_
> > don't, and it's not telling me! _very_ frustrating; Gnu/Linux is much
> > better here. So I assume that's the error message GetLastError will
> > return here.
> On Fri, 29 Nov 2019 at 07:17, Eli Zaretskii <eliz@gnu.org> wrote:
> > From: Richard Copley <rcopley@gmail.com>
>
> > GetLastError() is just an integer, like errno. You must have to do a
little more work to get descriptive errors
> > from other systems? There's probably an equivalent. The Application
error log in Event Viewer springs to
> > mind.
>
> I usually do from the shell prompt:
>
> net helpmsg NNN
>
> where NNN is the code returned by GetLastError. (Programmatically,
> there's the FormatMessage function to return the error string.)
> Example:
>
> D:\usr\eli>net helpmsg 2
>
> The system cannot find the file specified.
>
On GNU/Linux, the strerror family of functions can be used to format an
error message. I'd demonstrate, but it would be patronising and beside the
point.
You've brought us back to the error message Stephe complained about in the
first place. I quoted him in the email you replied to. He complained that
the message doesn't include the name of the file that was not found. He
remarked "Gnu/Linux is much better here". I wondered how.
> > ("Dependencies" gets detailed information somehow. But for all I know
(I haven't looked) it emulates the
> > loader to see what happens.)
>
> You can do the same with objdump, btw.
I'll leave the conversation here. It's not going anywhere.
[-- Attachment #2: Type: text/html, Size: 2307 bytes --]
next prev parent reply other threads:[~2019-11-29 8:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-26 12:34 gnutls on mingw64 Stephen Leake
2019-11-26 15:42 ` Richard Copley
2019-11-27 1:10 ` Stephen Leake
2019-11-27 8:56 ` Richard Copley
2019-11-27 9:58 ` Stephen Leake
2019-11-26 15:46 ` Eli Zaretskii
2019-11-27 10:00 ` Stephen Leake
2019-11-27 15:53 ` Eli Zaretskii
2019-11-28 18:00 ` Stephen Leake
2019-11-28 22:22 ` Richard Copley
2019-11-29 7:17 ` Eli Zaretskii
2019-11-29 8:32 ` Richard Copley [this message]
2019-11-29 10:24 ` Eli Zaretskii
2019-11-29 3:16 ` Juanma Barranquero
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=CAPM58ogY_8NQ30hmhJa6C1yxNa+2aw-zsK-xX6PDKKYmZ3Mp3w@mail.gmail.com \
--to=rcopley@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=stephen_leake@stephe-leake.org \
/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).