summaryrefslogtreecommitdiff
path: root/fml/lib/FML/Command/Admin
diff options
context:
space:
mode:
authorfukachan <fukachan>2003-05-20 10:02:16 +0000
committerfukachan <fukachan>2003-05-20 10:02:16 +0000
commite120fbb694c40e0c869fe1d1a937e8d6f50351b0 (patch)
tree05cbda101e128fc48ad4700173c6f91c35437835 /fml/lib/FML/Command/Admin
parenta4ad91af43ae72050ef0b59840b8a50fc2cc2e51 (diff)
downloadfml8-e120fbb694c40e0c869fe1d1a937e8d6f50351b0.tar.gz
fml8-e120fbb694c40e0c869fe1d1a937e8d6f50351b0.tar.bz2
fml8-e120fbb694c40e0c869fe1d1a937e8d6f50351b0.zip
move the status dump code from FML::Command::Admin:error to FML::Error.
Diffstat (limited to 'fml/lib/FML/Command/Admin')
-rw-r--r--fml/lib/FML/Command/Admin/error.pm24
1 files changed, 4 insertions, 20 deletions
diff --git a/fml/lib/FML/Command/Admin/error.pm b/fml/lib/FML/Command/Admin/error.pm
index 11bb4d93..4534f766 100644
--- a/fml/lib/FML/Command/Admin/error.pm
+++ b/fml/lib/FML/Command/Admin/error.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: error.pm,v 1.4 2003/03/28 10:32:22 fukachan Exp $
+# $FML: error.pm,v 1.5 2003/05/20 04:22:56 fukachan Exp $
#
package FML::Command::Admin::error;
@@ -82,25 +82,9 @@ sub _fmlerror
my $config = $curproc->config();
use FML::Error;
- my $obj = new FML::Error $curproc;
- my $data = $obj->analyze();
- my $info = $obj->get_data_detail();
-
- # XXX-TODO: move to FML::Error more.
- my ($k, $v);
- while (($k, $v) = each %$info) {
- if (defined($v) && ref($v) eq 'ARRAY') {
- my $x = '';
- for my $y (@$v) {
- $x .= $y if defined $y;
- $x .= " ";
- }
- print "$k => ( $x)\n";
- }
- else {
- print "$k => $v\n";
- }
- }
+ my $error = new FML::Error $curproc;
+ $error->analyze();
+ $error->dump();
}