Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to report error is occured? #82

Open
ignatandrei opened this issue May 14, 2020 · 0 comments
Open

How to report error is occured? #82

ignatandrei opened this issue May 14, 2020 · 0 comments
Labels
C# code in C# help wanted Extra attention is needed

Comments

@ignatandrei
Copy link
Owner

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 ignatandrei added C# code in C# help wanted Extra attention is needed labels May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C# code in C# help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant