Merge pull request #33 from Cyberboss/Cyberboss-patch-1

Command line connection errors print the exception
This commit is contained in:
Leo
2017-06-07 11:10:53 -03:00
committed by GitHub
+4 -4
View File
@@ -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
}
}
}
}
}