]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added a lot debug infos.
authorRoland Haeder <roland@mxchange.org>
Sun, 18 Jan 2015 12:25:18 +0000 (13:25 +0100)
committerRoland Haeder <roland@mxchange.org>
Sun, 18 Jan 2015 12:25:18 +0000 (13:25 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
classes/File.php

index 3bbdcbe99069d2fcd2a4b013066ca1460ebd6b11..aee16e132d80549966ab453e79de494181c75731 100644 (file)
@@ -433,7 +433,19 @@ class File extends Managed_DataObject
                 || $box['h'] < 1 || $box['y'] >= $this->height) {
             // Fail on bad width parameter. If this occurs, it's due to algorithm in ImageFile->scaleToFit
             common_debug("Boundary box parameters for resize of {$this->filepath} : ".var_export($box,true));
-            throw new ServerException('Bad thumbnail size parameters.');
+            throw new ServerException('Bad thumbnail size parameters. maxsize=' .
+                common_config('thumbnail', 'maxsize') .
+                ',box[width]=' . $box['width'] .
+                ',box[height]=' . $box['height'] .
+                ',box[w]=' . $box['w'] .
+                ',box[h]=' . $box['h'] .
+                ',box[x]=' . $box['x'] .
+                ',box[y]=' . $box['y'] .
+                ',this->width=' . $this->width .
+                ',this->heigh=' . $this->height .
+                ',this->filepath=' . $this->filepath .
+                ',this->filename=' . $this->filename
+            );
         }
 
         // Perform resize and store into file