Skip to content

Commit

Permalink
add info msg to cli output if logs are not available
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandra Belousov authored and Alexandra Belousov committed Jan 16, 2025
1 parent 5ee7055 commit 27c8405
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runhouse/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,9 @@ def cluster_logs(
headers=rns_client.request_headers(),
)

if resp.status_code == 404:
console.print("Cluster logs are not available yet.")
return
if resp.status_code != 200:
console.print("Failed to load cluster logs.")
return
Expand Down

0 comments on commit 27c8405

Please sign in to comment.