Author: Derick Rethans
Date: 2006-01-13 16:23:12 +0100 (Fri, 13 Jan 2006)
New Revision: 1841

Log:
- Fixed message formatting.

Modified:
   packages/ImageAnalysis/trunk/src/exceptions/file_not_processable.php

Modified: packages/ImageAnalysis/trunk/src/exceptions/file_not_processable.php
===================================================================
--- packages/ImageAnalysis/trunk/src/exceptions/file_not_processable.php        
2006-01-13 15:17:06 UTC (rev 1840)
+++ packages/ImageAnalysis/trunk/src/exceptions/file_not_processable.php        
2006-01-13 15:23:12 UTC (rev 1841)
@@ -16,9 +16,14 @@
  */
 class ezcImageAnalyzerFileNotProcessableException extends 
ezcImageAnalyzerException
 {
-    function __construct( $file, $reason = 'unknown' )
+    function __construct( $file, $reason = null )
     {
-        parent::__construct( "Could not process file <{$file}>. Reason: 
<{$reason}>" );
+        $reasonPart = '';
+        if ( $reason )
+        {
+            $reasonPart = " Reason: $reason.";
+        }
+        parent::__construct( "Could not process file <{$file}>.{$reasonPart}" 
);
     }
 }
 

-- 
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to