diff --git a/plug.vim b/plug.vim index 78fdc03..ac14332 100644 --- a/plug.vim +++ b/plug.vim @@ -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') diff --git a/test/workflow.vader b/test/workflow.vader index 12a7f6f..7d70946 100644 --- a/test/workflow.vader +++ b/test/workflow.vader @@ -2,7 +2,7 @@ Execute (plug#end() before plug#begin() should fail): redir => out silent! AssertEqual 0, plug#end() redir END - Assert stridx(out, 'Call plug#begin() first') >= 0 + Assert stridx(out, 'plug#end() called without calling plug#begin() first') >= 0 Execute (plug#begin() without path argument): call plug#begin()