From: Joey Hess Date: Fri, 10 Sep 2010 18:20:53 +0000 (-0400) Subject: use warn X-Git-Tag: 3.20100915~34 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=163fc34db7f29bc75a05c54b83c2a00c5ad899c2;p=ikiwiki.git use warn --- diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index ab39cca12..a79e7d7f0 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -1249,8 +1249,8 @@ sub splitlangpair ($) { if (! defined $code || ! defined $name || ! length $code || ! length $name) { # not a fatal error to avoid breaking if used with web setup - print STDERR sprintf(gettext("%s has invalid syntax: must use CODE|NAME"), - $pair)."\n"; + warn sprintf(gettext("%s has invalid syntax: must use CODE|NAME"), + $pair); } return $code, $name;