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

Corrected spelling (and casing) of error messages #259

Merged

Conversation

ElmarJ
Copy link
Contributor

@ElmarJ ElmarJ commented Nov 4, 2023

Summary of the pull request

Minor changes to exception messages, solving a typo and incorrect casing

References and relevant issues

#258

Detailed description of the pull request

Maybe the Libgit2-exception should be rephrased entirely to be more helpful for end users, but that's beyond the aim of this small PR.

Validation steps performed

PR checklist

}
catch (Exception e)
{
Providers.Log.Logger()?.ReportError("DevHomeRepository", "Could not clone the repository", e);
return new ProviderOperationResult(ProviderOperationStatus.Failure, e, "Something happened when cloning the repo", "something happened when cloning the repo");
return new ProviderOperationResult(ProviderOperationStatus.Failure, e, "Something happened when cloning the repo", "Something happened when cloning the repo");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is a bit nitpicky, but the entire PR/issue is basically a nitpick, so I think it's warranted. If we're going to fix this sort of issue, we should make whatever is touched as correct as possible, so we don't have to fix it again later.

Two issues I see here:

  1. Use of abbreviations. The abbreviation "repo" is used instead of "repository. Abbreviations and slang are to be avoided. Yes, I know this is all over the code, but if going to change something make it right as we go.
  2. All the error messages touched in this PR are not complete sentences. Namely just add a period at the end.
     
    https://learn.microsoft.com/en-us/windows/win32/debug/error-message-guidelines

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I'll make these corrections.

BTW: I agree that this PR is a nitpick, But I actually did spent several minutes trying to figure out / web searching what "LitGit2" meant in the error dialogue I received before I realized it was a typo (I know, not my brightest moment) - hence the PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the PR. I checked all messages for spelling errors, punctuation, abbreviations and made a few small changes to improve clarity.

@ElmarJ ElmarJ requested a review from dkbennett November 6, 2023 21:16
@EricJohnson327 EricJohnson327 merged commit f38c724 into microsoft:main Nov 7, 2023
4 checks passed
@ElmarJ ElmarJ deleted the patch-correct-spelling-of-error-messages branch November 8, 2023 08:45
EricJohnson327 pushed a commit that referenced this pull request Jan 18, 2024
* Corrected spelling (and casing) of error messages

* Additional corrections to exception messages

---------

Co-authored-by: Kristen Schau <[email protected]>
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.

Typo in exception message
4 participants