diff options
| author | fukachan <fukachan> | 2003-11-08 06:51:49 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2003-11-08 06:51:49 +0000 |
| commit | 8c01db4ff51f533ca0d1693463b40bd073e94e41 (patch) | |
| tree | adbdc92971a4412561e9b5adda65e69aa9ec6c22 /fml/lib | |
| parent | 8863e878360eeda055ecbe0060392628bb3c9d5c (diff) | |
| download | fml8-8c01db4ff51f533ca0d1693463b40bd073e94e41.tar.gz fml8-8c01db4ff51f533ca0d1693463b40bd073e94e41.tar.bz2 fml8-8c01db4ff51f533ca0d1693463b40bd073e94e41.zip | |
call croak() if address to remove not found
Diffstat (limited to 'fml/lib')
| -rw-r--r-- | fml/lib/FML/Command/UserControl.pm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fml/lib/FML/Command/UserControl.pm b/fml/lib/FML/Command/UserControl.pm index 1f6e41ba..74767f91 100644 --- a/fml/lib/FML/Command/UserControl.pm +++ b/fml/lib/FML/Command/UserControl.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: UserControl.pm,v 1.32 2003/03/28 10:32:21 fukachan Exp $ +# $FML: UserControl.pm,v 1.33 2003/08/23 07:24:42 fukachan Exp $ # package FML::Command::UserControl; @@ -128,7 +128,8 @@ sub useradd } unless ($trycount) { - $curproc->logerror("no trail to add $address"); + $curproc->logerror("fail to add $address"); + croak("fail to add $address"); } } @@ -208,7 +209,8 @@ sub userdel } unless ($trycount) { - $curproc->logerror("no trail to remove $address"); + $curproc->logerror("no such user $address"); + croak("no such user $address"); } } |
