quak login: say in words why the login failed (closes #244)
check / check (push) Waiting to run

A password the server refuses (401 from /users/srp/verify-session) now
fails with "incorrect email or password". An email the server has no
account for (404 with a JSON body from /users/srp/attributes) fails with
"no account with this email on the server". The error stays an ApiError
with the same status. A 404 without JSON, as from a server address that
is not an Ente server, keeps the bare "HTTP 404".

Model: opus-5-5
This commit is contained in:
sneak committed 2026-11-19 06:46:20 +00:00
1 parent 2492946e9d
commit 6e361ace8a
3 files changed
+107 -19

No files matched your search

+7 -2
View File
@@ -276,8 +276,13 @@ factor at that point, login fails.
On success it logs `Logged in as <email> (user <id>)` and
`Session saved to <path>`. On failure it logs `Login failed: <reason>`, and the
exit status is 1. `login` is the only command that prompts, and its prompts go
to stdout.
exit status is 1. Two reasons are given in words:
- a wrong password: `Login failed: incorrect email or password`
- an email with no account on the server:
`Login failed: no account with this email on the server`
`login` is the only command that prompts, and its prompts go to stdout.
#### `quak whoami`