Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F22632824
D12796.id30876.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
953 B
Referenced Files
None
Subscribers
None
D12796.id30876.diff
View Options
diff --git a/src/error/PhutilErrorHandler.php b/src/error/PhutilErrorHandler.php
--- a/src/error/PhutilErrorHandler.php
+++ b/src/error/PhutilErrorHandler.php
@@ -244,14 +244,20 @@
* @return void
* @task internal
*/
- public static function handleException(Exception $ex) {
+ public static function handleException(Exception $exception) {
+ if ($exception instanceof PhutilAggregateException) {
+ foreach ($exception->getExceptions() as $ex) {
+ phlog($ex);
+ }
+ }
+
self::dispatchErrorMessage(
self::EXCEPTION,
- $ex,
+ $exception,
array(
- 'file' => $ex->getFile(),
- 'line' => $ex->getLine(),
- 'trace' => self::getRootException($ex)->getTrace(),
+ 'file' => $exception->getFile(),
+ 'line' => $exception->getLine(),
+ 'trace' => self::getRootException($exception)->getTrace(),
'catch_trace' => debug_backtrace(),
));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Oct 1, 2:44 AM (2 d, 21 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
16972763
Default Alt Text
D12796.id30876.diff (953 B)
Attached To
Mode
D12796: Provide stacktraces for aggregate exceptions
Attached
Detach File
Event Timeline
Log In to Comment