summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Command/HTMLify.pm
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-06-30 01:22:26 +0000
committerfukachan <fukachan>2002-06-30 01:22:26 +0000
commitd09e7257dfea222690f00e79d5c9416a6931467f (patch)
treec8493caa935d88301a8214e112fcf46a1f210232 /fml/lib/FML/Command/HTMLify.pm
parentce9c31920ed705cee60194755af5e3c2ea69cf4f (diff)
downloadfml8-d09e7257dfea222690f00e79d5c9416a6931467f.tar.gz
fml8-d09e7257dfea222690f00e79d5c9416a6931467f.tar.bz2
fml8-d09e7257dfea222690f00e79d5c9416a6931467f.zip
more check of input
Diffstat (limited to 'fml/lib/FML/Command/HTMLify.pm')
-rw-r--r--fml/lib/FML/Command/HTMLify.pm9
1 files changed, 5 insertions, 4 deletions
diff --git a/fml/lib/FML/Command/HTMLify.pm b/fml/lib/FML/Command/HTMLify.pm
index b69e774c..4629692c 100644
--- a/fml/lib/FML/Command/HTMLify.pm
+++ b/fml/lib/FML/Command/HTMLify.pm
@@ -4,7 +4,7 @@
# All rights reserved. This program is free software; you can
# redistribute it and/or modify it under the same terms as Perl itself.
#
-# $FML: HTMLify.pm,v 1.5 2002/05/13 14:24:46 fukachan Exp $
+# $FML: HTMLify.pm,v 1.6 2002/06/27 08:22:21 fukachan Exp $
#
package FML::Command::HTMLify;
@@ -40,9 +40,10 @@ sub convert
my $src_dir = $optargs->{ src_dir };
my $dst_dir = $optargs->{ dst_dir };
- unless (-d $src_dir) {
- croak("no such source directory");
- }
+ croak("src_dir not defined") unless defined $src_dir;
+ croak("src_dir not exists") unless -d $src_dir;
+ croak("dst_dir not defined") unless defined $dst_dir;
+ croak("dst_dir not exists") unless -d $dst_dir;
# XXX NOT NEED THIS CHECK ?
# unless ($curproc->is_config_cf_exist()) {