Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14055254
D11771.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
601 B
Referenced Files
None
Subscribers
None
D11771.diff
View Options
diff --git a/src/aphront/response/AphrontUnhandledExceptionResponse.php b/src/aphront/response/AphrontUnhandledExceptionResponse.php
--- a/src/aphront/response/AphrontUnhandledExceptionResponse.php
+++ b/src/aphront/response/AphrontUnhandledExceptionResponse.php
@@ -22,7 +22,13 @@
}
protected function getResponseTitle() {
- return pht('Unhandled Exception');
+ $ex = $this->exception;
+
+ if ($ex instanceof AphrontUsageException) {
+ return $ex->getTitle();
+ } else {
+ return pht('Unhandled Exception');
+ }
}
protected function getResponseBodyClass() {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 9:52 AM (3 d, 3 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6746787
Default Alt Text
D11771.diff (601 B)
Attached To
Mode
D11771: Show exception title as page title for AphrontUsageException
Attached
Detach File
Event Timeline
Log In to Comment