Skip to content

fix(cli): say "login failed" once, and agree counts with their nouns - #61

Merged
CameronBrooks11 merged 1 commit into
mainfrom
fix/output-wording
Nov 13, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
fix/output-wording

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Two wording fixes in pull and push output:

  • Login failure: a refused login printed wikisync pull: login failed: login failed: Failed (bad password). main adds the prefix, and mw.Login's error started with the same words. mw.Login now returns the wiki's result and reason alone.
  • Counts: pull printed walked 1 categories, skipped 1 pages in other languages and skipped 1 watched pages that don't exist. count() picks the singular for 1. The last two now read not in the wiki's language and watched titles with no page, which hold for any count.

The output tests from #49 now pin the new wording, and TestCount covers 0, 1 and 2. There's a changelog entry under Fixed.

Closes #56

A refused login printed "login failed: login failed: Failed (bad
password)": main prefixes the error and mw.Login's error began with the
same words. mw.Login now returns the wiki's result and reason alone.

pull printed "walked 1 categories", "skipped 1 pages in other
languages" and "skipped 1 watched pages that don't exist". count()
picks the singular for 1, and the last two now read "not in the wiki's
language" and "watched titles with no page", which hold for any count.

Closes #56
@CameronBrooks11
CameronBrooks11 merged commit cfe212a into main Nov 13, 2026
9 checks passed
@CameronBrooks11
CameronBrooks11 deleted the fix/output-wording branch November 13, 2026 17:30
CameronBrooks11 added a commit that referenced this pull request Nov 13, 2026
Prepares v0.5.1: the version constant becomes 0.5.1, and the CHANGELOG's
Unreleased section becomes 0.5.1. User-facing changes since v0.5.0: #52
(HTTP status on login and edit errors, #45), #53 (conflict check reads
the revision id only, #46), #61 (login failure and count wording, #56),
#62 (push read-back warning, #58). The rest are refactors with no change
in behaviour: #54, #55, #57, #59, #60. The tag is pushed after this
merges.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cli: "login failed" printed twice, and "1 pages" in pull's output

1 participant