Code

Updated error handling in FAI release creation
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Jul 2008 13:21:55 +0000 (13:21 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 25 Jul 2008 13:21:55 +0000 (13:21 +0000)
- Print out GOsa error message instead of a simple text

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12056 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_FAI.inc

index 75a7b1f684f115f6b6c9489674ff8795b8a90da6..ffa7427dcd9b050b32b3a566da082e64a5661b7d 100644 (file)
@@ -1139,11 +1139,9 @@ class FAI
         if(!$ldap->success()){
 
           /* Some error occurred */
-          print "---------------------------------------------";
-          print $ldap->get_error()."<br>";
-          print $sourcedn."<br>";
-          print $destinationdn."<br>";
-          print_a( $attr);
+          msg_dialog::display(_("Fatal error"),
+              sprintf(_("Release creation failed due to ldap errors. Additional informations '%s'."),
+                $ldap->get_error()."<br>".$sourcedn."<br>".$destinationdn."<br>"),FATAL_ERROR_DIALOG);
           exit();
         }
       }