mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-29 11:17:52 +01:00
Chain exceptions
Also show the chained exceptions, when a previous exception is set.
This commit is contained in:
parent
04f7d4e4c7
commit
dc21739880
@ -27,6 +27,9 @@ class ExceptionsCollector extends DataCollector implements Renderable
|
||||
public function addException(Exception $e)
|
||||
{
|
||||
$this->exceptions[] = $e;
|
||||
if($previous = $e->getPrevious()){
|
||||
$this->addException($previous);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user