fixes #9
This commit is contained in:
parent
9eb8ddbc40
commit
43db463ba6
@ -478,6 +478,13 @@ public static class Tranga_Cli
|
|||||||
|
|
||||||
Publication[] publications = taskManager.GetPublicationsFromConnector(connector, query ?? "");
|
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;
|
int pIndex = 0;
|
||||||
Console.WriteLine("Publications:");
|
Console.WriteLine("Publications:");
|
||||||
foreach(Publication publication in publications)
|
foreach(Publication publication in publications)
|
||||||
|
Loading…
Reference in New Issue
Block a user