[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: ox-publish: opaque error message when giving a nonexisting
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Bug: ox-publish: opaque error message when giving a nonexisting file [8.2.1 (8.2.1-dist @ /usr/share/emacs/site-lisp/org-mode/)] |
Date: |
Mon, 25 Nov 2013 23:39:50 +0100 |
Hello,
Arne Babenhauserheide <address@hidden> writes:
> When you set a publishing project which :include 's a non-existant
> file, the error message is
>
> +: Wrong type argument: integerp, nil
>
> This should instead be something like “specified nonexstient file”.
>
> The function responsible to this is
>
> (defun org-publish-cache-ctime-of-src (file)
> "Get the ctime of FILE as an integer."
> (let ((attr (file-attributes
> (expand-file-name (or (file-symlink-p file) file)
> (file-name-directory file)))))
> (+ (lsh (car (nth 5 attr)) 16)
> (cadr (nth 5 attr)))))
>
> (file-attributes <nonexistent-file) returns nil. So this should be
> checked to return a clear error message.
Thank you for the detailed report. This should be fixed.
Regards,
--
Nicolas Goaziou