Skip to content

Commit c877d72

Browse files
committed
Attempting to diagnose this issue...
1 parent e867de9 commit c877d72

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

FRBDK/BuildServerUploader/BuildServerUploaderConsole/Processes/UploadFilesToFrbServer.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using System.Text.RegularExpressions;
77
using FlatRedBall.IO;
88
using BuildServerUploaderConsole.Sftp;
9+
using System.Net.Sockets;
910

1011
namespace BuildServerUploaderConsole.Processes
1112
{
@@ -197,7 +198,14 @@ private void UploadEngineFiles()
197198

198199
using (var client = SftpManager.GetClient(host, Username, Password))
199200
{
200-
client.Connect();
201+
try
202+
{
203+
client.Connect();
204+
}
205+
catch(SocketException ex)
206+
{
207+
throw new Exception($"Error trying to connect to host {host}", ex);
208+
}
201209
for (int i = 0; i < engineFiles.Count; i++)
202210
{
203211
string localFile = engineFiles[i].DestinationFile;

FRBDK/BuildServerUploader/BuildServerUploaderConsole/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ private static void CreateZipAndUploadTemplates(string[] args)
112112

113113
if (args.Length < 3)
114114
{
115-
throw new Exception("Expected 3 arguments: {operation} {username} {password}, but only got " + args.Length + "arguments");
115+
throw new Exception("Expected 3 arguments: {operation} {username} {password}, but only got " + args.Length + " arguments");
116116
}
117117
ProcessSteps.Add(new UploadFilesToFrbServer(Results, UploadType.EngineAndTemplatesOnly, args[1], args[2]));
118118
}

0 commit comments

Comments
 (0)