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

more granular error codes #86

Merged
merged 2 commits into from
Mar 15, 2024
Merged

more granular error codes #86

merged 2 commits into from
Mar 15, 2024

Conversation

lemccomb
Copy link
Contributor

Added error codes to distinguish between missing, empty, and unreadable source files, and integrated them into CoseSignTool.
Added unit tests to cover these cases.
Minor cleanup of other unit tests.

Comment on lines +130 to +134
catch (Exception ex)
{
return CoseSignTool.Fail(
ExitCode.FileUnreadable, ex, $"The file specified in /{optionName} could not be read: {file.FullName}");
}

Check notice

Code scanning / CodeQL

Generic catch clause Note

Generic catch clause.
@lemccomb lemccomb closed this Mar 15, 2024
@lemccomb lemccomb reopened this Mar 15, 2024
@lemccomb lemccomb merged commit 4cc6331 into main Mar 15, 2024
11 checks passed
@lemccomb lemccomb deleted the user/lemccomb/payloaderrors branch March 15, 2024 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants