Closed Bug 869345 Opened 11 years ago Closed 11 years ago

"mach help" shouldn't throw a keyerror exception if you pass it an unknown topic

Categories

(Firefox Build System :: Mach Core, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Gijs, Unassigned)

Details

Attachments

(1 file)

Trying to figure out how to run jetpack tests with mach, I ran:

"mach help jetpack"

as a first guess. That made mach sad, and it went all:

KeyError: 'jetpack'

  File "c:\dev\jamun\python/mach\mach\main.py", line 214, in run
    return self._run(argv)
  File "c:\dev\jamun\python/mach\mach\main.py", line 260, in _run
    handler = Registrar.command_handlers[args.subcommand]

on me.

It shouldn't do that. :-)
Attached patch PatchSplinter Review
Something like this? :-)
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Attachment #746281 - Flags: review?(gps)
Comment on attachment 746281 [details] [diff] [review]
Patch

This bug may have been fixed by the landing of bug 856392. In either case, I'm 95% confident you got bit rot by it.
Attachment #746281 - Flags: review?(gps)
(In reply to Gregory Szorc [:gps] from comment #2)
> Comment on attachment 746281 [details] [diff] [review]
> Patch
> 
> This bug may have been fixed by the landing of bug 856392. In either case,
> I'm 95% confident you got bit rot by it.

Fixed, complete with clippy and all. Nice work, thanks! :-)
Assignee: gijskruitbosch+bugs → nobody
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: