diff options
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | userdrake | 6 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,4 @@ +- do not crash when trying to rename a user to an already existing name - make libuser binding i18n aware - refactorization for readability (please test) - use libuser translations @@ -1154,7 +1154,11 @@ sub Edit() { Gtk2::Button->new($_->[0]), clicked => sub { if (!$retv) { if ($p <= 0) { - UserEdit_valid($userEnt, $model, $primgid); + eval { UserEdit_valid($userEnt, $model, $primgid) }; + if (my $err = $@) { + c::set_tagged_utf8($err); + RaiseError(N("An error occurred:") . "\n" . $err); + } } elsif ($p == 1) { GroupEdit_valid($groupEnt, $model, $groupname); } |