~kota/pcf

3adc83484e4fd92d3ed542e79b09e3cbf73084e6 — Dakota Walsh 2 months ago 3a2ddad v2.0.1
add error message if missing environment variable
1 files changed, 4 insertions(+), 0 deletions(-)

M main.go
M main.go => main.go +4 -0
@@ 71,6 71,10 @@ func hash(f *os.File) string {
}

func main() {
	if addr == "" {
		fmt.Println("pcf: you must set the PCFSERVER environment variable!")
		os.Exit(1)
	}
	// parse the url
	u, err := url.Parse(addr)
	if err != nil {