Page MenuHomePhabricator

Change arcanist error output
AbandonedPublic

Authored by joshuaspence on May 15 2015, 2:23 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 16, 3:14 AM
Unknown Object (File)
Sun, Mar 31, 6:08 PM
Unknown Object (File)
Jan 4 2024, 9:03 PM
Unknown Object (File)
Dec 24 2023, 2:56 PM
Unknown Object (File)
Dec 22 2023, 6:58 AM
Unknown Object (File)
Dec 16 2023, 5:42 PM
Unknown Object (File)
Dec 15 2023, 3:38 AM
Unknown Object (File)
Dec 15 2023, 3:38 AM
Subscribers

Details

Summary

Ref T8156. Change the error output from arcanist to respect the output from custom __toString() methods.

Test Plan

Created a custom Exception class which implemented a __toString() method. Saw exception messages as expected.

Diff Detail

Repository
rARC Arcanist
Branch
master
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 6381
Build 6403: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

joshuaspence retitled this revision from to Change arcanist error output.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
joshuaspence edited the test plan for this revision. (Show Details)

Is this still relevant? What's the remaining use case for implementing a custom __toString() instead of having getMessage() return the desired value? (It looks like none of our exceptions implement __toString().)