From 3c820e8ecfba1ac5708b0f716c3deedbc6054253 Mon Sep 17 00:00:00 2001 From: tyru Date: Mon, 9 Apr 2018 22:05:20 +0900 Subject: [PATCH] fix: error message when volt cannot overwrite vimrc (fix #222) --- cmd/builder/base.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/builder/base.go b/cmd/builder/base.go index 64d0686a..e5ca68a3 100644 --- a/cmd/builder/base.go +++ b/cmd/builder/base.go @@ -78,7 +78,7 @@ func (builder *BaseBuilder) installRCFile(profileName, srcRCFileName, dst string if !pathutil.Exists(src) { return nil } - return errors.New("'" + dst + "' does not have magic comment") + return fmt.Errorf("'%s' is not an auto-generated file. please move to '%s' and re-run 'volt build'", dst, pathutil.RCDir(profileName)) } }