From 73f8403b0c0cfa5a19e48286266d456326c5b122 Mon Sep 17 00:00:00 2001 From: Katerina Molchanova <35141662+rokatyy@users.noreply.github.com> Date: Mon, 10 Jun 2024 19:07:15 +0100 Subject: [PATCH] Missing error details when function state is unhealthy (#182) --- nuclio/deploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuclio/deploy.py b/nuclio/deploy.py index 745bc61..742aa42 100644 --- a/nuclio/deploy.py +++ b/nuclio/deploy.py @@ -541,7 +541,7 @@ def process_resp(resp, last_time, verbose=False, log_message=False): logs = status.get('logs', []) message = status.get('message', '') - if state == 'error' and message != '': + if state in ['error', 'unhealthy'] and message != '': message = f'Failed to deploy. Details:\n{message}' if log_message: logger.info(message)