NETCoreBlockly
NETCoreBlockly copied to clipboard
How to report error is occured?
For example: If a swagger endpoint gives an error , the code is swallowing the error: internal async Task AddSwagger(string key, string endpoint) { try { var data = await GenerateFromSwaggerEndPoint(endpoint);
swaggers.Add(key, new BlocklyFileGenerator(data));
}
catch(Exception ex)
{
Console.WriteLine($"adding swagger {endpoint} throws error {ex?.Message}");
//swallowing error - should run even if the endpoint is not available
}
}
What should be an ok way to report ?