Skip to content

Don't crash when calling path with only one argument which is not a valid verb

Florian Karuhtz requested to merge flesser/reposurgeon:fix-pathcrash into master

A small typo like path lirst would crash you right out of the interactive shell:

reposurgeon% path lirst
panic: runtime error: index out of range [1] with length 1 [recovered]
        panic: runtime error: index out of range [1] with length 1 [recovered]
        panic: runtime error: index out of range [1] with length 1
Edited by Florian Karuhtz

Merge request reports