emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: arne_bab@web.de
Cc: emacs-orgmode@gnu.org
Subject: Re: 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	[thread overview]
Message-ID: <87siuk85s9.fsf@gmail.com> (raw)
In-Reply-To: <87siuk9m1d.wl%arne_bab@web.de> (Arne Babenhauserheide's message of "Mon, 25 Nov 2013 23:03:26 +0100")


Arne Babenhauserheide <arne_bab@web.de> 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.


Nicolas Goaziou

      reply	other threads:[~2013-11-25 22:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-25 22:03 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/)] Arne Babenhauserheide
2013-11-25 22:39 ` Nicolas Goaziou [this message]

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:

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87siuk85s9.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=arne_bab@web.de \
    --cc=emacs-orgmode@gnu.org \


* 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


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).