Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14002624
D9968.id23951.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.id23951.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
Sat, Oct 26, 8:44 PM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6714241
Default Alt Text
D9968.id23951.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