From a10a89a810bf34db3bd165dcfd9c31f2b9f78284 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 6 May 2008 13:56:09 +0000 Subject: [PATCH] Added more specific error message git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10793 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../services/kerberos/class_password-methods-MIT.inc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc b/gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc index 0ea60f424..c52d84095 100644 --- a/gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc +++ b/gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc @@ -194,9 +194,8 @@ class passwordMethodMIT extends passwordMethod $tmp = $o->krb5_get_principal($server,$name); if($o->is_error()){ - $this->si_error = TRUE; - $this->si_error_msg = $o->get_error(); + $this->si_error_msg = sprintf(_("While loading principal for '%s', from server '%s'."),$name,$server).": 
".$o->get_error(); msg_dialog::display(_("Service infrastructure"),msgPool::siError($o->get_error()),ERROR_DIALOG); }else{ @@ -250,7 +249,7 @@ class passwordMethodMIT extends passwordMethod $tmp = $o->krb5_list_principals($server); if($o->is_error()){ $this->si_error = TRUE; - $this->si_error_msg = $o->get_error(); + $this->si_error_msg = sprintf(_("While loading principals from server '%s'."),$server).": 
".$o->get_error(); msg_dialog::display(_("Service infrastructure"),msgPool::siError($o->get_error()),ERROR_DIALOG); return(array()); }else{ @@ -277,7 +276,7 @@ class passwordMethodMIT extends passwordMethod $tmp = $o->krb5_list_policies($server); if($o->is_error()){ $this->si_error = TRUE; - $this->si_error_msg = $o->get_error(); + $this->si_error_msg = sprintf(_("While loading policies from server '%s'."),$server).": 
".$o->get_error(); msg_dialog::display(_("Service infrastructure"),msgPool::siError($o->get_error()),ERROR_DIALOG); return(array()); }else{ -- 2.30.2