Page MenuHomePhabricator

Install an uncaught exception handler in Aphlict
ClosedPublic

Authored by epriestley on Jun 23 2014, 8:47 PM.
Tags
None
Referenced Files
F17115941: D9698.diff
Thu, Jun 19, 1:34 PM
Unknown Object (File)
Wed, Jun 18, 5:06 AM
Unknown Object (File)
Mon, Jun 9, 2:29 AM
Unknown Object (File)
May 19 2025, 7:37 PM
Unknown Object (File)
May 10 2025, 1:46 AM
Unknown Object (File)
Apr 25 2025, 9:47 PM
Unknown Object (File)
Apr 25 2025, 4:24 PM
Unknown Object (File)
Apr 23 2025, 1:37 AM
Subscribers

Details

Summary

Ref T5373. This seems to work pretty much correctly.

Also stop popping bubbles and just use the log, since users find the bubbles confusing/not useful and they're not great for developers either.

Future diffs will expose more user-facing stuff.

Test Plan

Added throw to AphlictClient.as, got a log in the parent window.

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Install an uncaught exception handler in Aphlict.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: joshuaspence.

Is the 2048 error meant to show up in the console? I'm not seeing it.

Hmm, shows up for me:

Screen_Shot_2014-06-23_at_2.00.27_PM.png (160×475 px, 17 KB)

Let me try something...

epriestley edited edge metadata.
  • Accept Object instead of Error in this.error(...)

Nope, still completely blank for me.

(You have notification.debug enabled, I assume?)

Ahhhh nevermind... I thought I had notification.debug enabled, but it turns out my config file was invalid JSON:


  "notification.debug": true
}
support/aphlict/client/src/Aphlict.as
37

Is this necessary?

support/aphlict/client/src/Aphlict.as
37

It seems that Flash lets us get away with it, but it's more correct to use Object since we sometimes pass strings, not errors.

This revision is now accepted and ready to land.Jun 23 2014, 9:16 PM
epriestley updated this revision to Diff 23285.

Closed by commit rP80f26e96ea40 (authored by @epriestley).