[Fusionforge-commits] r8266 - trunk/gforge/www/frs

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Tue Oct 13 19:02:02 CEST 2009


Author: aljeux
Date: 2009-10-13 19:02:02 +0200 (Tue, 13 Oct 2009)
New Revision: 8266

Modified:
   trunk/gforge/www/frs/download.php
Log:
Improve error message in frs download

Modified: trunk/gforge/www/frs/download.php
===================================================================
--- trunk/gforge/www/frs/download.php	2009-10-13 17:01:57 UTC (rev 8265)
+++ trunk/gforge/www/frs/download.php	2009-10-13 17:02:02 UTC (rev 8266)
@@ -58,9 +58,12 @@
 }
 
 $Package = new FRSPackage($Group,$package_id);
-if (!$Package || !is_object($Package) || $Package->isError()) {
+if (!$Package || !is_object($Package)) {
 	exit_error('Error','Error Getting Package');
+} else if ($Package->isError()) {
+	exit_error('Error', $Package->getErrorMessage());
 }
+}
 $is_public = $Package->isPublic();
 
 $Release = new FRSRelease($Package,$release_id);




More information about the Fusionforge-commits mailing list