Skip to content

Commit

Permalink
Improve CircularReferenceException message
Browse files Browse the repository at this point in the history
  • Loading branch information
ScullWM committed Jul 3, 2017
1 parent 77d06b5 commit 3a529e3
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -228,7 +228,7 @@ protected function handleCircularReference($object)
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));
}

/**
Expand Down

0 comments on commit 3a529e3

Please sign in to comment.