Page MenuHomePhabricator

D11771.diff
No OneTemporary

D11771.diff

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

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)

Event Timeline