mirror of
https://github.com/Stone-Red-Code/HyperbolicDownloader.git
synced 2026-09-08 23:41:05 +02:00
Change socket format in error messages
This commit is contained in:
@@ -88,7 +88,7 @@ internal static class Program
|
|||||||
if (activeHostsCount == 0)
|
if (activeHostsCount == 0)
|
||||||
{
|
{
|
||||||
ConsoleExt.WriteLine("No active hosts found!", ConsoleColor.Red);
|
ConsoleExt.WriteLine("No active hosts found!", ConsoleColor.Red);
|
||||||
ConsoleExt.WriteLine("Use 'add host xxx.xxx.xxx.xxx:yyyy' to add a new host or use 'discover' to find hosts in the local network.", ConsoleColor.Red);
|
ConsoleExt.WriteLine("Use 'add host <ip address>:<port>' to add a new host or use 'discover' to find hosts in the local network.", ConsoleColor.Red);
|
||||||
}
|
}
|
||||||
|
|
||||||
Console.WriteLine($"{apiManager.HostsManager.Count} known host(s).");
|
Console.WriteLine($"{apiManager.HostsManager.Count} known host(s).");
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ public class FileCommands
|
|||||||
|
|
||||||
if (parts.Length != 2)
|
if (parts.Length != 2)
|
||||||
{
|
{
|
||||||
ApiManager.SendNotificationMessageNewLine("Invalid format! Use this format: (xxx.xxx.xxx.xxx:yyyy)", NotificationMessageType.Error);
|
ApiManager.SendNotificationMessageNewLine("Invalid format! Use this format: <ip address>:<port>", NotificationMessageType.Error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ public class HostCommands
|
|||||||
if (activeHostsCount == 0)
|
if (activeHostsCount == 0)
|
||||||
{
|
{
|
||||||
ApiManager.SendNotificationMessageNewLine("No active hosts found!", NotificationMessageType.Error);
|
ApiManager.SendNotificationMessageNewLine("No active hosts found!", NotificationMessageType.Error);
|
||||||
ApiManager.SendNotificationMessageNewLine("Use 'add host xxx.xxx.xxx.xxx:yyyy' to add a new host.", NotificationMessageType.Error);
|
ApiManager.SendNotificationMessageNewLine("Use 'add host <ip address>:<port>' to add a new host.", NotificationMessageType.Error);
|
||||||
}
|
}
|
||||||
|
|
||||||
ApiManager.SendNotificationMessageNewLine(string.Empty, NotificationMessageType.Info);
|
ApiManager.SendNotificationMessageNewLine(string.Empty, NotificationMessageType.Info);
|
||||||
@@ -85,7 +85,7 @@ public class HostCommands
|
|||||||
|
|
||||||
if (parts.Length != 2)
|
if (parts.Length != 2)
|
||||||
{
|
{
|
||||||
ApiManager.SendNotificationMessageNewLine("Invalid format! Use this format: (xxx.xxx.xxx.xxx:yyyy)", NotificationMessageType.Error);
|
ApiManager.SendNotificationMessageNewLine("Invalid format! Use this format: <ip address>:<port>", NotificationMessageType.Error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -123,7 +123,7 @@ public class HostCommands
|
|||||||
|
|
||||||
if (parts.Length != 2)
|
if (parts.Length != 2)
|
||||||
{
|
{
|
||||||
ApiManager.SendNotificationMessageNewLine("Invalid format! Use this format: (xxx.xxx.xxx.xxx:yyyy)", NotificationMessageType.Error);
|
ApiManager.SendNotificationMessageNewLine("Invalid format! Use this format: <ip address>:<port>", NotificationMessageType.Error);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user