Fix throw in issues completion

Closes https://github.com/tpope/vim-rhubarb/issues/23
This commit is contained in:
Tim Pope
2017-06-28 16:08:11 -04:00
parent f7c4a493e6
commit 6caad2b61a

View File

@@ -204,7 +204,7 @@ function! rhubarb#omnifunc(findstart,base) abort
if type(response) != type({})
call s:throw('unknown error')
elseif has_key(response, 'message')
call s:throw(response[message])
call s:throw(response.message)
else
let issues = get(response, 'items', [])
endif