From: Michael J. Rubinsky Date: Thu, 12 Aug 2010 17:20:47 +0000 (-0400) Subject: Throw an expcetion instead of just logging this. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=8611536bec8d227d9c94d470f794a593057e99f4;p=horde.git Throw an expcetion instead of just logging this. --- diff --git a/framework/Image/lib/Horde/Image/Im.php b/framework/Image/lib/Horde/Image/Im.php index 439af8dda..5d3575a57 100644 --- a/framework/Image/lib/Horde/Image/Im.php +++ b/framework/Image/lib/Horde/Image/Im.php @@ -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 */