Page MenuHomePhabricator

If a `PhutilProxyException` is thrown by Arcanist, print all error messages.
ClosedPublic

Authored by joshuaspence on Jun 23 2014, 7:08 PM.
Tags
None
Referenced Files
F12834285: D9697.diff
Thu, Mar 28, 2:33 PM
F12823727: D9697.id.diff
Thu, Mar 28, 8:04 AM
Unknown Object (File)
Mon, Mar 11, 8:05 PM
Unknown Object (File)
Mon, Mar 11, 7:32 PM
Unknown Object (File)
Wed, Mar 6, 4:23 PM
Unknown Object (File)
Dec 27 2023, 2:03 PM
Unknown Object (File)
Dec 27 2023, 3:00 AM
Unknown Object (File)
Dec 22 2023, 4:10 AM
Subscribers

Details

Summary

PhutilProxyException provides the capability to nest exceptions. However, if we throw a PhutilProxyException then we currently only display the error message from the top-most exception. Instead, we should print all of the nested exception messages.

Test Plan

Faked an error, saw multiple lines of exception messages.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

joshuaspence retitled this revision from to If a `PhutilProxyException` is thrown by Arcanist, print all error messages..
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
joshuaspence edited edge metadata.
joshuaspence added inline comments.
scripts/arcanist.php
367–368

This is a bit messy and probably should be consolidated.

373

Hmm... In PHP 5.3+ a normal Exception has a getPrevious method too.

epriestley edited edge metadata.
This revision is now accepted and ready to land.Jun 23 2014, 11:21 PM