@@ -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:' )
584585 for l: line in split (l: output_for_pos , ' \n' )
585586 call hdevtools#print_error (l: line )
586587 endfor
@@ -595,7 +596,10 @@ 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:' )
600+ for l: line in split (l: output_for_pos , ' \n' )
601+ call hdevtools#print_error (l: line )
602+ endfor
599603 return
600604 endif
601605 let l: linenumber_of_identifier = l: pos_last_line_parsed [1 ]
@@ -606,7 +610,7 @@ function! hdevtools#insert_type()
606610 let l: output_for_type = system (l: cmd_to_get_type_of_identifier )
607611
608612 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:' )
610614 for l: line in split (l: output_for_type , ' \n' )
611615 call hdevtools#print_error (l: line )
612616 endfor
0 commit comments