From 21cc3f4a2b4fc2f8d47413fe50426e603c37fe50 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 3 Feb 2020 17:01:17 -0500 Subject: [PATCH] feat: add better messaging when the app returns a 404 from the api --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 8eccb60..10c2f2d 100644 --- a/main.go +++ b/main.go @@ -87,7 +87,10 @@ query apps($name: String!, $allApps: Boolean!) { fmt.Printf("%v exists\n", app.Name) os.Exit(0) } - fmt.Printf("%v does not exist\n", name) + fmt.Printf("%v not found. Possible causes:\n", name) + fmt.Printf("- You may not have been granted access to this app.") + fmt.Printf("- The app may not exist (or may not have been deployed yet).") + fmt.Printf("- The app is broken and could not be started.") os.Exit(1) }