Skip to content

Commit 21cc3f4

Browse files
committed
feat: add better messaging when the app returns a 404 from the api
1 parent a351609 commit 21cc3f4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ query apps($name: String!, $allApps: Boolean!) {
8787
fmt.Printf("%v exists\n", app.Name)
8888
os.Exit(0)
8989
}
90-
fmt.Printf("%v does not exist\n", name)
90+
fmt.Printf("%v not found. Possible causes:\n", name)
91+
fmt.Printf("- You may not have been granted access to this app.")
92+
fmt.Printf("- The app may not exist (or may not have been deployed yet).")
93+
fmt.Printf("- The app is broken and could not be started.")
9194
os.Exit(1)
9295
}
9396

0 commit comments

Comments
 (0)