Code

Added more specific error message
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 6 May 2008 13:56:09 +0000 (13:56 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 6 May 2008 13:56:09 +0000 (13:56 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10793 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/heimdal/admin/systems/services/kerberos/class_password-methods-MIT.inc

index 0ea60f424488dcfd93f927cd4ed5723d431fdae1..c52d84095bb2abec0da8aac0ed5d2e12d5a4e618 100644 (file)
@@ -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).":&nbsp;<br>".$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).":&nbsp;<br>".$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).":&nbsp;<br>".$o->get_error(); 
         msg_dialog::display(_("Service infrastructure"),msgPool::siError($o->get_error()),ERROR_DIALOG);
         return(array());
       }else{