pagespec error/failure distinction and error display by inline
authorJoey Hess <joey@gnu.kitenet.net>
Thu, 23 Apr 2009 18:07:28 +0000 (14:07 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Thu, 23 Apr 2009 18:07:28 +0000 (14:07 -0400)
commit748aa7af777caaa32ac5ab56e707509b3739b49e
treee5ab8791c45420d114efee9df68cee2ef8181478
parent2c74f09bb870c717669f273ba7d4aa1637dcccf1
pagespec error/failure distinction and error display by inline

* Add IkiWiki::ErrorReason objects, and modify pagespecs to return
  them in cases where they fail to match due to a configuration or syntax
  error.
* inline: Display a handy error message if the inline cannot display any
  pages due to such an error.

This is perhaps somewhat incomplete, as other users of pagespecs do not
display the error, and will eventually need similar modifications to inline.
I should probably factor out a pagespec_match_all function and make it throw
ErrorReasons.
16 files changed:
IkiWiki.pm
IkiWiki/Plugin/filecheck.pm
IkiWiki/Plugin/inline.pm
debian/changelog
doc/plugins/write.mdwn
po/bg.po
po/cs.po
po/da.po
po/de.po
po/es.po
po/fr.po
po/gu.po
po/ikiwiki.pot
po/pl.po
po/sv.po
po/vi.po