Parse errors should give a "USAGE" for the line that they are parsing.

Bug #604718 reported by James Westby
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Aaron Bentley
bzr-builder
Fix Released
High
Aaron Bentley

Bug Description

bzr: ERROR: Error parsing /tmp/recipe:3:32: End of line while looking for the branch url.

that's all well and good, but if you don't know the format you will be saying "it's already got a branch url!"

What we should do is print a "usage" for the line that we are parsing, and also explain what part we matched where.

bzr: ERROR: Error parsing /tmp/recipe:3:32: End of line while looking for the branch url. merge instructions have the format "merge <name> <url> [<revspec>]". In this case we parsed "lp:whatever" as the <name>.

Related branches

James Westby (james-w)
Changed in bzr-builder:
status: New → Triaged
importance: Undecided → High
Tim Penhey (thumper)
tags: added: recipe
Changed in launchpad-code:
status: New → Triaged
importance: Undecided → High
Aaron Bentley (abentley)
Changed in bzr-builder:
assignee: nobody → Aaron Bentley (abentley)
Changed in launchpad-code:
assignee: nobody → Aaron Bentley (abentley)
Changed in bzr-builder:
status: Triaged → In Progress
James Westby (james-w)
Changed in bzr-builder:
status: In Progress → Fix Committed
Tim Penhey (thumper)
Changed in launchpad-code:
status: Triaged → In Progress
Revision history for this message
Launchpad QA Bot (lpqabot) wrote : Bug fixed by a commit
Changed in launchpad-code:
milestone: none → 10.12
tags: added: qa-needstesting
Changed in launchpad-code:
status: In Progress → Fix Committed
Aaron Bentley (abentley)
tags: added: qa-ok
removed: qa-needstesting
Curtis Hovey (sinzui)
Changed in launchpad-code:
status: Fix Committed → Fix Released
Jelmer Vernooij (jelmer)
Changed in bzr-builder:
milestone: none → 0.7
Jelmer Vernooij (jelmer)
Changed in bzr-builder:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.