Page MenuHomePhabricator

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

Authored by kamil on Apr 9 2024, 3:26 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 28, 5:55 AM
Unknown Object (File)
Thu, Nov 28, 3:25 AM
Unknown Object (File)
Thu, Nov 28, 1:50 AM
Unknown Object (File)
Sun, Nov 3, 8:47 AM
Unknown Object (File)
Oct 21 2024, 8:41 PM
Unknown Object (File)
Oct 12 2024, 10:23 PM
Unknown Object (File)
Oct 12 2024, 10:23 PM
Unknown Object (File)
Oct 12 2024, 10:23 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
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Apr 9 2024, 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.Apr 11 2024, 12:49 AM

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