Skip to content

Commit

Permalink
chore: show erroneous input when parsing fails
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasFeher committed Jun 3, 2024
1 parent 45fa2a8 commit 64badc3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugin/vim-bob.vim
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,9 @@ function! s:Persist()
" first group is the package name, second group ist the configured
" branch, if any
let l:match = matchlist(l:line, 'git \(\S*\) \(\S*\)')
if len(l:match) < 1
echomsg 'error: could not parse result from: ' l:line
endif
let l:package = l:match[1]
if ! empty(l:match[2])
let l:branch = l:match[2]
Expand Down

0 comments on commit 64badc3

Please sign in to comment.