diff --git a/src/Helper/PartialLoop.php b/src/Helper/PartialLoop.php index 8bb79221..96a9d380 100644 --- a/src/Helper/PartialLoop.php +++ b/src/Helper/PartialLoop.php @@ -153,6 +153,9 @@ private function extractViewVariables($values) return $values->toArray(); } - throw new Exception\InvalidArgumentException('PartialLoop helper requires iterable data'); + throw new Exception\InvalidArgumentException(sprintf( + 'PartialLoop helper requires iterable data, %s given', + is_object($values) ? get_class($values) : gettype($values) + )); } }