Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14319380
D9968.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
877 B
Referenced Files
None
Subscribers
None
D9968.diff
View Options
diff --git a/support/aphlict/server/aphlict_server.js b/support/aphlict/server/aphlict_server.js
--- a/support/aphlict/server/aphlict_server.js
+++ b/support/aphlict/server/aphlict_server.js
@@ -177,9 +177,18 @@
debug.log('notification: ' + JSON.stringify(msg));
++messages_in;
- transmit(msg);
- response.writeHead(200, {'Content-Type': 'text/plain'});
+ try {
+ transmit(msg);
+ response.writeHead(200, {'Content-Type': 'text/plain'});
+ } catch (err) {
+ debug.log(
+ '<%s> Internal Server Error! %s',
+ request.socket.remoteAddress,
+ err);
+ response.statusCode = 500;
+ response.write('500 Internal Server Error\n');
+ }
} catch (err) {
debug.log(
'<%s> Bad Request! %s',
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 9:46 AM (6 h, 12 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6906958
Default Alt Text
D9968.diff (877 B)
Attached To
Mode
D9968: Return a HTTP 500 instead of a HTTP 400 if an internal error occurs in the Aphlict server
Attached
Detach File
Event Timeline
Log In to Comment