@@ -581,6 +581,7 @@ function! hdevtools#insert_type()
581
581
let l: output_for_pos = system (l: cmd_to_get_pos_of_identifier )
582
582
583
583
if v: shell_error != 0
584
+ call hdevtools#print_error (" hdevtools#insert_type: Couldn't get type for " . l: identifier . ' . hdevtools answered:' )
584
585
for l: line in split (l: output_for_pos , ' \n' )
585
586
call hdevtools#print_error (l: line )
586
587
endfor
@@ -595,7 +596,10 @@ function! hdevtools#insert_type()
595
596
let l: pos_last_line = l: pos_lines [-1 ]
596
597
let l: pos_last_line_parsed = matchlist (l: pos_last_line , ' \(\d\+\) \(\d\+\) \(\d\+\) \(\d\+\) "\([^"]\+\)"' )
597
598
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:' )
600
+ for l: line in split (l: output_for_pos , ' \n' )
601
+ call hdevtools#print_error (l: line )
602
+ endfor
599
603
return
600
604
endif
601
605
let l: linenumber_of_identifier = l: pos_last_line_parsed [1 ]
@@ -606,7 +610,7 @@ function! hdevtools#insert_type()
606
610
let l: output_for_type = system (l: cmd_to_get_type_of_identifier )
607
611
608
612
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 )
613
+ call hdevtools#print_error (" hdevtools#insert_type: Couldn't get type for " . l: identifier . ' . hdevtools answered:' )
610
614
for l: line in split (l: output_for_type , ' \n' )
611
615
call hdevtools#print_error (l: line )
612
616
endfor
0 commit comments