From 8611536bec8d227d9c94d470f794a593057e99f4 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Thu, 12 Aug 2010 13:20:47 -0400 Subject: [PATCH] Throw an expcetion instead of just logging this. --- framework/Image/lib/Horde/Image/Im.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 */ -- 2.11.0