HomePhabricator
Diffusion Comm 40a568f58255

Re-throw all exceptions except from race condition between workers

Description

Re-throw all exceptions except from race condition between workers

Summary: This differntial modifies localforage to provide method to get message of exception that is thrown when race condition occurs. Additionally this method is used innotifs code to filter exception and decide when to silence and when to re-throw exception.

Test Plan:

  1. Apply this patch: https://gist.github.com/marcinwasowicz/4aaa7ecc71af0e91c66cf96e748161c0
  2. Uncomment the first change. Youd should be seeing logs in shared worker console but no errors being thrown.
  3. Comment the first change and uncomment the second. You should be seeing errors thrown in web app console.

Reviewers: ashoat, tomek, kamil

Reviewed By: kamil

Differential Revision: https://phab.comm.dev/D13116