From 6caad2b61afcc1b7c476b0ae3dea9ee5f2b1d14a Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 28 Jun 2017 16:08:11 -0400 Subject: [PATCH] Fix throw in issues completion Closes https://github.com/tpope/vim-rhubarb/issues/23 --- autoload/rhubarb.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/rhubarb.vim b/autoload/rhubarb.vim index 5cb140d..3e7e34f 100644 --- a/autoload/rhubarb.vim +++ b/autoload/rhubarb.vim @@ -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