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
Unknown Object (File)
Mon, Dec 30, 9:17 AM
Unknown Object (File)
Mon, Dec 30, 8:25 AM
Unknown Object (File)
Sat, Dec 28, 2:52 PM
Unknown Object (File)
Sat, Dec 14, 8:35 AM
Unknown Object (File)
Sun, Dec 8, 2:51 PM
Unknown Object (File)
Nov 28 2024, 5:23 PM
Unknown Object (File)
Nov 26 2024, 5:38 PM
Unknown Object (File)
Nov 18 2024, 4:49 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