diff --git a/sherlog-cli/Program.cs b/sherlog-cli/Program.cs index fb5d6d3..681b55d 100644 --- a/sherlog-cli/Program.cs +++ b/sherlog-cli/Program.cs @@ -149,6 +149,12 @@ static async Task Main(string[] args) return -1; } + if (recipients.Count == 0) + { + Console.WriteLine("No recipients found for tenant. Please set up in NetBox first."); + return -1; + } + Console.Write("\n"); var selectedRecipients = Prompt.MultiSelect("Select stakeholders to be notified on this log entry?", recipients, pageSize: 3).ToList();