prevent too long error reports

This commit is contained in:
Steffen Schröder
2014-05-24 22:34:57 +02:00
parent fcd4e577cf
commit d7975e33b7
3 changed files with 12 additions and 2 deletions

View File

@ -23,7 +23,7 @@ abstract class ClassUtil {
if (is_string($object)) {
return $object;
}
trigger_error("Invalid class param: '{$object}'!");
trigger_error("Invalid class param: '" . print_r($object, true) . "'!");
return (string)$object;
}
}