diff options
| author | fukachan <fukachan> | 2003-01-03 07:03:35 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2003-01-03 07:03:35 +0000 |
| commit | a72be4fd3804989977f295c6b1fef2608720d3d3 (patch) | |
| tree | 16b410766425ec648a840067476f31555228cfce | |
| parent | 0f5af05553083e8c63423479cf8a7b6bb23fc3cc (diff) | |
| download | fml8-a72be4fd3804989977f295c6b1fef2608720d3d3.tar.gz fml8-a72be4fd3804989977f295c6b1fef2608720d3d3.tar.bz2 fml8-a72be4fd3804989977f295c6b1fef2608720d3d3.zip | |
define $debug.
more error messages.
| -rw-r--r-- | fml/lib/FML/Command.pm | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/fml/lib/FML/Command.pm b/fml/lib/FML/Command.pm index e6176b13..ab60b959 100644 --- a/fml/lib/FML/Command.pm +++ b/fml/lib/FML/Command.pm @@ -1,10 +1,10 @@ #-*- perl -*- # -# Copyright (C) 2001,2002 Ken'ichi Fukamachi +# Copyright (C) 2001,2002,2003 Ken'ichi Fukamachi # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: Command.pm,v 1.34 2002/12/22 03:39:43 fukachan Exp $ +# $FML: Command.pm,v 1.35 2002/12/24 10:19:41 fukachan Exp $ # # XXX @@ -19,6 +19,9 @@ use Carp; use FML::Log qw(Log LogWarn LogError); +my $debug = 0; + + =head1 NAME FML::Command - fml command dispatcher @@ -98,6 +101,15 @@ sub rewrite_prompt if ($command->can('rewrite_prompt')) { $command->rewrite_prompt($curproc, $command_args, $rbuf); } + else { + LogError("call $pkg but rewrite_prompt() not supported") if $debug; + } + } + else { + if ($debug) { + LogError($@); + LogError("cannot load $pkg"); + } } } @@ -224,7 +236,7 @@ Ken'ichi Fukamachi =head1 COPYRIGHT -Copyright (C) 2001,2002 Ken'ichi Fukamachi +Copyright (C) 2001,2002,2003 Ken'ichi Fukamachi All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. |
