Skip to content

Commit 73f8403

Browse files
authored
Missing error details when function state is unhealthy (#182)
1 parent ec057ba commit 73f8403

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nuclio/deploy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ def process_resp(resp, last_time, verbose=False, log_message=False):
541541
logs = status.get('logs', [])
542542

543543
message = status.get('message', '')
544-
if state == 'error' and message != '':
544+
if state in ['error', 'unhealthy'] and message != '':
545545
message = f'Failed to deploy. Details:\n{message}'
546546
if log_message:
547547
logger.info(message)

0 commit comments

Comments
 (0)