mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 14:37:44 +01:00
Command line connection errors print the exception
This commit is contained in:
@@ -56,16 +56,16 @@ namespace TGCommandLine
|
||||
var res = Server.VerifyConnection();
|
||||
if (res != null)
|
||||
{
|
||||
Console.WriteLine("Unable to connect to service!");
|
||||
Console.WriteLine("Unable to connect to service: " + res);
|
||||
return ExitCode.ConnectionError;
|
||||
}
|
||||
try
|
||||
{
|
||||
return new RootCommand().Run(argsAsList);
|
||||
}
|
||||
catch
|
||||
catch (Exception e)
|
||||
{
|
||||
Console.WriteLine("Service connection interrupted!");
|
||||
Console.WriteLine("Error: " + e.ToString());
|
||||
return ExitCode.ConnectionError;
|
||||
};
|
||||
}
|
||||
@@ -127,4 +127,4 @@ namespace TGCommandLine
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user