Page MenuHomePhabricator

[native] fix regression in error handling
ClosedPublic

Authored by varun on Apr 1 2024, 12:41 PM.
Tags
None
Referenced Files
F3401738: D11514.diff
Mon, Dec 2, 1:40 PM
Unknown Object (File)
Sun, Nov 3, 8:03 AM
Unknown Object (File)
Oct 12 2024, 8:33 PM
Unknown Object (File)
Oct 12 2024, 8:33 PM
Unknown Object (File)
Oct 12 2024, 8:33 PM
Unknown Object (File)
Oct 12 2024, 8:32 PM
Unknown Object (File)
Sep 18 2024, 8:18 AM
Unknown Object (File)
Aug 29 2024, 7:50 PM
Subscribers

Details

Summary

if the password is wrong we shouldn't display the unknown error text.

Improving the error message is tracked in https://linear.app/comm/issue/ENG-7111/make-grpc-statuses-clearer-in-protocol-error-to-grpc-status-function

Test Plan

confirmed that the "incorrect username or password" alert displays now when the password is incorrect

Diff Detail

Repository
rCOMM Comm
Branch
delete-user (branched from master)
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

varun requested review of this revision.Apr 1 2024, 12:56 PM
This revision is now accepted and ready to land.Apr 2 2024, 12:25 PM
native/account/log-in-panel.react.js
330–331

What do these two separate errors mean, out of curiosity? Is one basically "incorrect password" and the other is "incorrect username"?

native/account/log-in-panel.react.js
330–331

yeah exactly. the first is incorrect username, the second is incorrect password

improving the second one, which is too vague IMO, is tracked in the linear task linked in the diff description above

This revision was automatically updated to reflect the committed changes.