Skip to content

Commit

Permalink
Merge pull request #675 from shazow/master
Browse files Browse the repository at this point in the history
gorename: Output original error if error parsing fails.
  • Loading branch information
fatih committed Jan 3, 2016
2 parents 70c3630 + dd82399 commit 8ddcf6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autoload/go/rename.vim
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ function! go#rename#Rename(bang, ...)
call go#list#Window(len(errors))
if !empty(errors) && !a:bang
call go#list#JumpToFirst()
elseif empty(errors)
" failed to parse errors, output the original content
call go#util#EchoError(out)
endif
return
else
Expand Down

0 comments on commit 8ddcf6d

Please sign in to comment.