ref(project): group variable declarations

Group variable declarations and correct error message (no capitalization
and end with punctuation).
This commit is contained in:
Sunny 2017-07-27 00:13:17 +05:30
Родитель bb267f70a4
Коммит 9b8617d173
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -13,8 +13,10 @@ import (
"github.com/golang/dep/internal/gps"
)
var errProjectNotFound = fmt.Errorf("could not find project %s, use dep init to initiate a manifest", ManifestName)
var errVendorBackupFailed = fmt.Errorf("Failed to create vendor backup. File with same name exists.")
var (
errProjectNotFound = fmt.Errorf("could not find project %s, use dep init to initiate a manifest", ManifestName)
errVendorBackupFailed = fmt.Errorf("failed to create vendor backup. File with same name exists")
)
// findProjectRoot searches from the starting directory upwards looking for a
// manifest file until we get to the root of the filesystem.