From 7287e78fddbbfcb76ef66edfbf16c7c64d193911 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 17 Sep 2003 10:17:17 +0000 Subject: display errors occuring in any::set_authentication() (esp. for "Can't use broadcast with no NIS domain") --- perl-install/standalone/drakauth | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'perl-install/standalone/drakauth') diff --git a/perl-install/standalone/drakauth b/perl-install/standalone/drakauth index 74f88cdb2..939b57c0c 100755 --- a/perl-install/standalone/drakauth +++ b/perl-install/standalone/drakauth @@ -28,6 +28,11 @@ $in->ask_from('', '', any::ask_authentification_parameters($in, $netc, $authentication, $authentication_kind) or goto main; -any::set_authentication($in, $netc, $authentication, sub { my ($f) = @_; $f->() }); +eval { any::set_authentication($in, $netc, $authentication, sub { my ($f) = @_; $f->() }) }; +if (my $err = $@) { + $in->ask_warn(N("Error"), formatError($err)); + goto main; +} + $in->exit; -- cgit v1.2.1