Page MenuHomePhabricator

[native] fix regression in error handling
ClosedPublic

Authored by varun on Apr 1 2024, 12:41 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 14, 3:38 PM
Unknown Object (File)
Sun, Apr 14, 1:00 PM
Unknown Object (File)
Fri, Apr 12, 7:55 PM
Unknown Object (File)
Fri, Apr 12, 10:56 AM
Unknown Object (File)
Thu, Apr 11, 3:09 AM
Unknown Object (File)
Mon, Apr 8, 4:09 AM
Unknown Object (File)
Fri, Apr 5, 9:56 PM
Unknown Object (File)
Apr 3 2024, 1:12 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #38640)

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 ↗(On Diff #38640)

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.