-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
C#: Fix quality issues #16871
C#: Fix quality issues #16871
Conversation
catch (Exception ex) | ||
{ | ||
// If this happened, it was probably because | ||
// - the same file was compiled multiple times, or | ||
// - the file doesn't exist (due to wrong #line directive or because it's an in-memory source generated AST). | ||
// In any case, this is not a fatal error. | ||
logger.LogWarning("Problem archiving " + dest + ": " + ex); | ||
} |
Check notice
Code scanning / CodeQL
Generic catch clause Note
catch (Exception ex) // lgtm[cs/catch-of-all-exceptions] | ||
{ | ||
logger.LogError($" Unhandled exception: {ex}"); | ||
return ExitCode.Errors; | ||
} |
Check notice
Code scanning / CodeQL
Generic catch clause Note
42db708
to
158537b
Compare
158537b
to
199a968
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
No description provided.