Merge pull request 'fixes #9' (#13) from Issue_9 into master

Reviewed-on: glax/Tranga#13
This commit is contained in:
glax 2023-05-22 16:53:40 +02:00
commit bb6a0ad0d4

View File

@ -478,6 +478,13 @@ public static class Tranga_Cli
Publication[] publications = taskManager.GetPublicationsFromConnector(connector, query ?? "");
if (publications.Length < 1)
{
logger.WriteLine("Tranga_CLI", "No publications returned");
Console.WriteLine($"No publications for query '{query}' returned;");
return null;
}
int pIndex = 0;
Console.WriteLine("Publications:");
foreach(Publication publication in publications)