[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Odd backtrace in condition-case
From: |
Stefan Monnier |
Subject: |
Re: Odd backtrace in condition-case |
Date: |
Tue, 21 May 2019 17:51:02 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> I usually run with `debug-on-error' set, but lately I've started getting
> these backtraces:
>
> Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
> capitalize(nil)
> timezone-make-arpa-date(2000 0 0 "01:00:00" (3600 "CET"))
> timezone-make-date-arpa-standard("Session")
> date-to-time("Session")
> url-cookie-expired-p([url-cookie "NRK-Experiment-Bucket" "0" "Session" "/"
> "www.nrk.no" nil])
FWIW, I think it was useful for Emacs to show this backtrace (hence
validating the use of condition-case-unless-debug there ;-) because
it makes no sense for
(date-to-time "Session")
to signal the error `(wrong-type-argument char-or-string-p nil)`
IOW, the above backtrace indicates a bug somewhere within date-to-time,
which should signal *another* error.
Stefan