Skip to content

Commit 2c2a5a6

Browse files
authored
Merge pull request #156 from uptick/no-000/cluster-repo-hint
fix: improve app not found error message
2 parents b0d9502 + e0f93b4 commit 2c2a5a6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

gitops/utils/apps.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ def get_app_details(
3838
except FileNotFoundError as e:
3939
msg, exc = "", Exception
4040
if get_apps_directory().exists():
41-
msg, exc = f"There's no app with the name '{app_name}', silly.", AppDoesNotExist
41+
msg, exc = (
42+
f"There's no app with the name '{app_name}', silly. is your cluster repo up to date?",
43+
AppDoesNotExist,
44+
)
4245
else:
4346
msg, exc = "Could not find an 'apps' directory. Are you in a cluster repo?", AppDirectoryDoesNotExist
4447
if exit_if_not_found:

0 commit comments

Comments
 (0)