Skip to content

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

Closed

Description

@CameronBrooks11

Two wording slips in what pull and push print. The tests that pin the output now show both:

  • A refused login says "login failed" twice, because main prefixes the error and mw.Login's error already starts with it:

    wikisync pull: login failed: login failed: Failed (bad password)
    
  • Counts don't agree with their noun when it's 1:

    walked 1 categories (depth 1)
    pulling the 1 tracked pages again
    skipped 1 watched pages that don't exist
    skipped 1 pages in other languages, such as translations (use --all-languages to include them)
    

Fix: mw.Login's error drops its own prefix (Failed (bad password)), and these four lines use the singular for 1. Update the tests that pin the old wording, and the changelog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions