Throw an expcetion instead of just logging this.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 12 Aug 2010 17:20:47 +0000 (13:20 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 12 Aug 2010 17:43:39 +0000 (13:43 -0400)
framework/Image/lib/Horde/Image/Im.php

index 439af8d..5d3575a 100644 (file)
@@ -153,7 +153,9 @@ class Horde_Image_Im extends Horde_Image_Base
             $this->_logDebug(sprintf("convert command executed by Horde_Image_im::raw(): %s", $command));
             exec($command, $output, $retval);
             if ($retval) {
-                $this->_logErr(sprintf("Error running command: %s", $command . "\n" . implode("\n", $output)));
+                $error = sprintf("Error running command: %s", $command . "\n" . implode("\n", $output));
+                $this->_logErr($error);
+                throw new Horde_Image_Exception($error);
             }
 
             /* Empty the operations queue */