From 6bf3fc680b22fbaeebc6aab93d851082a213647e Mon Sep 17 00:00:00 2001 From: Matt Farina Date: Fri, 7 Apr 2017 09:59:38 -0400 Subject: [PATCH] Updating the error language when GOROOT not found --- util/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/util.go b/util/util.go index 5365fd68..5a186b4c 100644 --- a/util/util.go +++ b/util/util.go @@ -287,8 +287,8 @@ func (b *BuildCtxt) PackageName(base string) string { // TODO: This should be moved to the `dependency` package. func GetBuildContext() (*BuildCtxt, error) { if len(goRoot) == 0 { - return nil, fmt.Errorf("Please set the $GOROOT environment " + - "variable to use this command\n") + return nil, fmt.Errorf("GOROOT value not found. Please set the GOROOT " + + "environment variable to use this command") } buildContext := &BuildCtxt{build.Default}