Clarify error message (#931)

The existing error message printed when plug#end() is called without
calling plug#begin() doesn't make the dependence on plug#begin()
obvious; I had to go digging in the vim-plug code to discover what I'd
done wrong. This attempts to clarify the error a bit, to make it more
obvious to a user.
This commit is contained in:
Henré Botha
2020-01-27 14:48:16 +01:00
committed by Junegunn Choi
parent 2f5f74e5e6
commit c3b6b7c297
2 changed files with 2 additions and 2 deletions

View File

@@ -251,7 +251,7 @@ endfunction
function! plug#end()
if !exists('g:plugs')
return s:err('Call plug#begin() first')
return s:err('plug#end() called without calling plug#begin() first')
endif
if exists('#PlugLOD')