Show full exception message in console

This commit is contained in:
2024-04-13 16:14:39 +03:00
parent d9f031f724
commit 63d459c5c6

View File

@@ -495,7 +495,8 @@ public class ConsoleInstance : IDisposable
catch (Exception e)
{
var message = e.InnerException != null ? e.InnerException.Message : e.Message;
Console.Print("Command failed: " + message);
var exp = e.InnerException != null ? e.InnerException : e;
Console.Print("Command failed: " + exp.ToString());
throw;
}
}