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)
Tue, Jan 28, 5:57 PM
Unknown Object (File)
Tue, Jan 28, 9:45 AM
Unknown Object (File)
Tue, Jan 28, 1:27 AM
Unknown Object (File)
Wed, Jan 22, 2:53 PM
Unknown Object (File)
Tue, Jan 21, 11:57 AM
Unknown Object (File)
Tue, Jan 21, 9:14 AM
Unknown Object (File)
Fri, Jan 17, 8:47 PM
Unknown Object (File)
Dec 30 2024, 9:17 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