From 44e09277050006ec954c202054371c38640c50b0 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 25 Jul 2008 13:21:55 +0000 Subject: [PATCH] Updated error handling in FAI release creation - 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 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gosa-plugins/fai/admin/fai/class_FAI.inc b/gosa-plugins/fai/admin/fai/class_FAI.inc index 75a7b1f68..ffa7427dc 100644 --- a/gosa-plugins/fai/admin/fai/class_FAI.inc +++ b/gosa-plugins/fai/admin/fai/class_FAI.inc @@ -1139,11 +1139,9 @@ class FAI if(!$ldap->success()){ /* Some error occurred */ - print "---------------------------------------------"; - print $ldap->get_error()."
"; - print $sourcedn."
"; - print $destinationdn."
"; - print_a( $attr); + msg_dialog::display(_("Fatal error"), + sprintf(_("Release creation failed due to ldap errors. Additional informations '%s'."), + $ldap->get_error()."
".$sourcedn."
".$destinationdn."
"),FATAL_ERROR_DIALOG); exit(); } } -- 2.30.2