Page MenuHomePhabricator

Catch errors that may occur whilst receiving data from the Aphlict server.
ClosedPublic

Authored by joshuaspence on Jun 4 2014, 11:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 13, 10:14 PM
Unknown Object (File)
Wed, Dec 11, 7:26 AM
Unknown Object (File)
Mon, Dec 9, 11:03 AM
Unknown Object (File)
Thu, Dec 5, 5:15 AM
Unknown Object (File)
Sat, Nov 30, 6:00 PM
Unknown Object (File)
Wed, Nov 27, 9:54 AM
Unknown Object (File)
Fri, Nov 22, 11:46 PM
Unknown Object (File)
Fri, Nov 22, 5:36 PM
Subscribers

Details

Summary

Ref T4324. Currently, if the AphlictMaster receives dodgy data from the Aphlict server (invalid JSON, for example) then a syntax error will be thrown and the AphlictMaster will die. Instead, catch errors and raise a notification.

Test Plan

error.png (649×1 px, 39 KB)

Diff Detail

Repository
rP Phabricator
Branch
aphlict-error
Lint
Lint Warnings
SeverityLocationCodeMessage
Warningwebroot/rsrc/js/application/aphlict/behavior-aphlict-listen.js:36TXT3Line Too Long
Unit
No Test Coverage
Build Status
Buildable 858
Build 858: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

joshuaspence retitled this revision from to Catch errors that may occur whilst receiving data from the Aphlict server..
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
joshuaspence edited edge metadata.

Always show Aphlict errors as a notification popup (even when debug mode is disabled).

joshuaspence edited the test plan for this revision. (Show Details)

Fix line length.

Prefix error message with "(Aphlict) "

joshuaspence edited the test plan for this revision. (Show Details)
epriestley edited edge metadata.
This revision is now accepted and ready to land.Jun 5 2014, 4:41 PM
epriestley updated this revision to Diff 22394.

Closed by commit rP8033a697461d (authored by @joshuaspence, committed by @epriestley).