Skip to content

Commit 4c555f9

Browse files
Fix error messages.
1 parent 0a0df73 commit 4c555f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

autoload/hdevtools.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,6 +581,7 @@ function! hdevtools#insert_type()
581581
let l:output_for_pos = system(l:cmd_to_get_pos_of_identifier)
582582

583583
if v:shell_error != 0
584+
call hdevtools#print_error("hdevtools#insert_type: Couldn't get type for " . l:identifier . ". hdevtools answered: " . l:output_for_pos)
584585
for l:line in split(l:output_for_pos, '\n')
585586
call hdevtools#print_error(l:line)
586587
endfor
@@ -595,7 +596,7 @@ function! hdevtools#insert_type()
595596
let l:pos_last_line = l:pos_lines[-1]
596597
let l:pos_last_line_parsed = matchlist(l:pos_last_line, '\(\d\+\) \(\d\+\) \(\d\+\) \(\d\+\) "\([^"]\+\)"')
597598
if len(l:pos_last_line_parsed) == 0
598-
call hdevtools#print_error('hdevtools#insert_type: No Type Information. hdevtools answered: ' . l:last_line)
599+
call hdevtools#print_error('hdevtools#insert_type: No Type Information. hdevtools answered: ' . l:pos_last_line)
599600
return
600601
endif
601602
let l:linenumber_of_identifier = l:pos_last_line_parsed[1]
@@ -606,7 +607,7 @@ function! hdevtools#insert_type()
606607
let l:output_for_type = system(l:cmd_to_get_type_of_identifier)
607608

608609
if v:shell_error != 0
609-
call hdevtools#print_error("hdevtools#insert_type: Couldn't get type for " . l:identifier . ". hdevtools answered: " . l:last_line)
610+
call hdevtools#print_error("hdevtools#insert_type: Couldn't get type for " . l:identifier . ". hdevtools answered: " . l:output_for_type)
610611
for l:line in split(l:output_for_type, '\n')
611612
call hdevtools#print_error(l:line)
612613
endfor

0 commit comments

Comments
 (0)