Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14038237
D10265.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
653 B
Referenced Files
None
Subscribers
None
D10265.diff
View Options
diff --git a/src/infrastructure/daemon/bot/handler/PhabricatorBotMacroHandler.php b/src/infrastructure/daemon/bot/handler/PhabricatorBotMacroHandler.php
--- a/src/infrastructure/daemon/bot/handler/PhabricatorBotMacroHandler.php
+++ b/src/infrastructure/daemon/bot/handler/PhabricatorBotMacroHandler.php
@@ -68,6 +68,11 @@
$ascii = $this->macros[$macro]['ascii'];
}
+ if ($ascii === false) {
+ // If we failed to rasterize the macro, bail out.
+ return;
+ }
+
$target_name = $message->getTarget()->getName();
foreach ($ascii as $line) {
$this->replyTo($message, $line);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 11, 10:20 PM (1 w, 14 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6712832
Default Alt Text
D10265.diff (653 B)
Attached To
Mode
D10265: Make bot macro handler more graceful in the face of failure
Attached
Detach File
Event Timeline
Log In to Comment