[Po4a-devel][CVS] po4a/lib/Locale/Po4a Chooser.pm,1.11,1.12

Martin Quinson po4a-devel@lists.alioth.debian.org
Fri, 16 Jul 2004 04:10:31 +0000


Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory haydn:/tmp/cvs-serv12192/lib/Locale/Po4a

Modified Files:
	Chooser.pm 
Log Message:
Improve robustness (against bug in po4a* scripts)

Index: Chooser.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Chooser.pm,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- Chooser.pm	25 May 2004 17:48:03 -0000	1.11
+++ Chooser.pm	16 Jul 2004 04:10:29 -0000	1.12
@@ -26,6 +26,9 @@
     my ($module)=shift;
     my (%options)=@_;
 
+    die gettext("Need to provide a module name to the Chooser")."\n"
+      unless defined $module;
+    
     my $modname;
     if ($module eq 'kernelhelp') {
         $modname = 'KernelHelp';