[Top][All Lists]

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

bug#21032: package.el acts pecularly

From: Vaidheeswaran C
Subject: bug#21032: package.el acts pecularly
Date: Sun, 12 Jul 2015 11:07:04 +0530
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.3.0

On Sunday 12 July 2015 04:28 AM, Artur Malabarba wrote:

>>     Error contacting: http://blah.blah.blah:/archive-contents
>>     error in process filter: peculiar error: 404 [2 times]

> The second error is saying that the page was not found.

Removing the second error and rewording the first error is good enough
for me.  Actually speaking, there is no "second" error.  There is only
one error.

The peculiar error is coming from `edebug-report-error'.  I really
think that user doesn't care much about the "innermost" errors.  So,
catching such errors and re-throwing it is a good idea.  Even if one
(as a developer) wants to see the "inner" errors, the *Messages*
should reflect the "innerness" of the fact by (say) parenthesizing it.

> I imagine other things that can happen are request time-out and
> certificate issues.

(The following pertains to url-http and may not concern package.el)

One way to handle the 404 (or for that matter any error) is to replace
it with it's string counterpart in `url-http-codes'.  If the error
code takes a "parameter", we can also convert entries like this:

    (404 not-found "Not found")


    (404 not-found "%s Not found")


reply via email to

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