From e6a64be097991010ebb0a7a993e543d16e3afc60 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Tue, 6 Jun 2017 13:45:41 -0400 Subject: [PATCH] Command line connection errors print the exception --- TGCommandLine/Program.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TGCommandLine/Program.cs b/TGCommandLine/Program.cs index 9a752ebb5a..b136a58a3c 100644 --- a/TGCommandLine/Program.cs +++ b/TGCommandLine/Program.cs @@ -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 } } } -} \ No newline at end of file +}