Page MenuHomePhabricator

[lib] errors utils to distinguish between session creation issues
ClosedPublic

Authored by kamil on Tue, Apr 9, 3:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 22, 1:44 PM
Unknown Object (File)
Sun, Apr 21, 3:03 PM
Unknown Object (File)
Sun, Apr 21, 1:11 PM
Unknown Object (File)
Sun, Apr 21, 1:36 AM
Unknown Object (File)
Tue, Apr 16, 4:00 PM
Unknown Object (File)
Tue, Apr 16, 9:18 AM
Unknown Object (File)
Mon, Apr 15, 1:54 PM
Unknown Object (File)
Sun, Apr 14, 1:56 PM
Subscribers

Details

Summary

Constants with errors introduced earlier in the stack.

Depends on D11591

Test Plan

Tested all error cases on both web and native

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Tue, Apr 9, 6:03 AM
kamil added inline comments.
lib/handlers/peer-to-peer-message-handler.js
45 ↗(On Diff #38926)

handled in D11596

lib/utils/errors.js
49 ↗(On Diff #38926)

added by IDE, I'll remove it before landing

lib/utils/errors.js
74–81 ↗(On Diff #38926)
  1. Should this have been introduced in D11595, and used there in worker-crypto.js?
  2. I think it's weird to add these Olm-specific errors to a file that otherwise is fairly generic. Can you find a different place for them?
lib/utils/errors.js
74–81 ↗(On Diff #38926)

Ignore point 1, I didn't realize this is earlier in the stack. Will follow up about using the constants on the linked diff

Point 2 still stands

Please address @ashoat suggestion before landing.

This revision is now accepted and ready to land.Thu, Apr 11, 12:49 AM

move olmSessionErrors from errors.js to olm-utils.js