Skip to content

Commit

Permalink
Missing error details when function state is unhealthy (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
rokatyy authored Jun 10, 2024
1 parent ec057ba commit 73f8403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nuclio/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 73f8403

Please sign in to comment.