NETCoreBlockly icon indicating copy to clipboard operation
NETCoreBlockly copied to clipboard

How to report error is occured?

Open ignatandrei opened this issue 4 years ago • 0 comments

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 ?

ignatandrei avatar May 14 '20 07:05 ignatandrei