Skip to content

Commit

Permalink
Updating the error language when GOROOT not found
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfarina committed Apr 7, 2017
1 parent da6220c commit 6bf3fc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 6bf3fc6

Please sign in to comment.