From e0f93b40f14c732ac1661c6a61e981eee05e32b2 Mon Sep 17 00:00:00 2001 From: Bradley Mclain <764990+BradMclain@users.noreply.github.com> Date: Fri, 22 May 2026 15:59:52 +1000 Subject: [PATCH] fix: improve app not found error message --- gitops/utils/apps.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gitops/utils/apps.py b/gitops/utils/apps.py index 5de1ea1..3abf075 100644 --- a/gitops/utils/apps.py +++ b/gitops/utils/apps.py @@ -38,7 +38,10 @@ def get_app_details( except FileNotFoundError as e: msg, exc = "", Exception if get_apps_directory().exists(): - msg, exc = f"There's no app with the name '{app_name}', silly.", AppDoesNotExist + msg, exc = ( + f"There's no app with the name '{app_name}', silly. is your cluster repo up to date?", + AppDoesNotExist, + ) else: msg, exc = "Could not find an 'apps' directory. Are you in a cluster repo?", AppDirectoryDoesNotExist if exit_if_not_found: