Skip to content

Commit

Permalink
Merge pull request #218 from vim-volt/kind-config-func-warning
Browse files Browse the repository at this point in the history
Fix warning message of s:config() function is found in plugconf files
  • Loading branch information
tyru authored Mar 31, 2018
2 parents 2c368c2 + ef6dc00 commit 220bb9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugconf/plugconf.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,9 @@ func ParsePlugconf(file *ast.File, src []byte, path string) (*ParsedInfo, *Parse
return true
}
parseErr.mwarn = multierror.Append(parseErr.mwarn,
errors.New("s:config() is deprecated. please use s:on_load_pre() instead"))
errors.New("s:config() is deprecated. "+
"please use s:on_load_pre() instead, or run "+
"\"volt migrate plugconf/config-func\" to rewrite existing plugconf files"))
if !isEmptyFunc(fn) {
onLoadPreFunc = string(extractBody(fn, src))
onLoadPreFunc = rxFuncName.ReplaceAllString(
Expand Down

0 comments on commit 220bb9d

Please sign in to comment.