welsonjs/WelsonJS.Augmented/Catswords.TlsReport/Program.cs
Namhyeon, Go d537555032 Improve error handling and path usage in inspector
Wrapped the main evaluation logic in Program.cs with a try-catch block to provide clearer error messages on failure. Updated Tls12OfflineInspector to use Path.Combine for system DLL path construction, improving cross-platform compatibility and code clarity.
2025-12-23 01:11:23 +09:00

27 lines
680 B
C#

using System;
namespace Catswords.TlsReport
{
internal class Program
{
static void Main(string[] args)
{
Console.WriteLine("Catswords TLS 1.2 Offline Inspector");
Console.WriteLine("https://catswords.com");
Console.WriteLine();
try
{
var report = Tls12OfflineInspector.Evaluate();
Console.WriteLine(report.ToText());
}
catch (Exception ex)
{
Console.Error.WriteLine("Inspector failed: " + ex.GetType().Name + ": " + ex.Message);
}
Console.WriteLine();
}
}
}