Author: sevein
Date: Sat Sep 19 15:32:58 2009
New Revision: 3429

Log:
Fix for throw exception when is found any problem running convert cli from 
ImageMagick..

Modified:
   trunk/lib/model/QubitDigitalObject.php

Modified: trunk/lib/model/QubitDigitalObject.php
==============================================================================
--- trunk/lib/model/QubitDigitalObject.php      Sat Sep 19 12:47:58 2009        
(r3428)
+++ trunk/lib/model/QubitDigitalObject.php      Sat Sep 19 15:32:58 2009        
(r3429)
@@ -947,9 +947,9 @@
 
       exec($convertStr, $output, $status);
 
-      if (false && $status == 1)
+      if ($status == 1)
       {
-        throw sfException('Encountered error: '.implode("\n".$output).' while 
running convert.');
+        throw new sfException('Encountered error'.(is_array($output) && 
count($output) > 0 ? ': '.implode('\n'.$output) : ' ').' while running convert 
(ImageMagick).');
       }
 
       // Build an array of the exploded file names

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to