Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3937215
D25984.1746426753.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
587 B
Referenced Files
None
Subscribers
None
D25984.1746426753.diff
View Options
diff --git a/src/applications/files/document/PhabricatorDocumentEngine.php b/src/applications/files/document/PhabricatorDocumentEngine.php
--- a/src/applications/files/document/PhabricatorDocumentEngine.php
+++ b/src/applications/files/document/PhabricatorDocumentEngine.php
@@ -28,7 +28,11 @@
}
final public function canRenderDocument(PhabricatorDocumentRef $ref) {
- return $this->canRenderDocumentType($ref);
+ try {
+ return $this->canRenderDocumentType($ref);
+ } catch (Throwable $e) {
+ return false;
+ }
}
public function canDiffDocuments(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, May 5, 06:32 (18 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1480590
Default Alt Text
D25984.1746426753.diff (587 B)
Attached To
Mode
D25984: Catch exception when a renderer freaks out
Attached
Detach File
Event Timeline
Log In to Comment