Ref T2683. Throw a more tailored exception to allow callers to distinguish between bad refs (which are expected, if users try to visit garbage branches) and other types of errors.
Details
Details
- Reviewers
btrahan - Maniphest Tasks
- T2683: Improve the performance of Diffusion browse views
- Commits
- Restricted Diffusion Commit
rPb80b851600cb: Throw a more tailored exception after failing to resolve a ref
Tried to view branch "alksndfklansdf". Viewed branch "master".
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
src/applications/diffusion/exception/DiffusionRefNotFoundException.php | ||
---|---|---|
8 | i'd probably make this a member variable to avoid messing with the constructor signature. pretty whatevs. |