Improve CircularReferenceException message

This commit is contained in:
Thomas Perez 2017-07-03 15:09:40 +02:00
parent 77d06b5d39
commit 3a529e3391

View File

@ -228,7 +228,7 @@ abstract class AbstractNormalizer extends SerializerAwareNormalizer implements N
return call_user_func($this->circularReferenceHandler, $object);
}
throw new CircularReferenceException(sprintf('A circular reference has been detected (configured limit: %d).', $this->circularReferenceLimit));
throw new CircularReferenceException(sprintf('A circular reference has been detected when serializing the object of class "%s" (configured limit: %d)', get_class($object), $this->circularReferenceLimit));
}
/**