8000 Adding support for message formatting in exception c'tors by whoisj · Pull Request #1095 · libgit2/libgit2sharp · GitHub
[go: up one dir, main page]

Skip to content

Adding support for message formatting in exception c'tors #1095

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

Merged
merged 1 commit into from
Jun 16, 2015
Merged

Adding support for message formatting in exception c'tors #1095

merged 1 commit into from
Jun 16, 2015

Conversation

whoisj
Copy link
@whoisj whoisj commented Jun 15, 2015

Just simplifies the code. There's not a great reason to continually use string.Format(...) constantly.

Was limited to using the public LibGit2SharpException(CultureInfo cultureInfo, string format, params object[] args) to avoid a conflict with the public LibGit2SharpException(string message, Exception innerException) if I used public LibGit2SharpException(string format, params object[] args).

@whoisj
Copy link
Author
whoisj commented Jun 15, 2015

Looks like I packed up that commit incorrectly while tying to undo the auto-formatting mess VS keeps getting me into. Let me see what I did there 😖

@whoisj
Copy link
Author
whoisj commented Jun 15, 2015

Nope - it actually looks like the NRE issue come back to haunt me. 😢

@nulltoken
Copy link
Member

Nope - it actually looks like the NRE issue come back to haunt me.

Restarted the build

@@ -210,11 +210,13 @@ public virtual ContentChanges Compare(Blob oldBlob, Blob newBlob, CompareOptions
{
Func<DiffSafeHandle, object> builder;

if (!ChangesBuilders.TryGetValue(typeof (T), out builder))
Copy link
Member

Choose a reason for hiding this comment

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

Any chance you could move the beautifications in a separate commit?

Copy link
Author

Choose a reason for hiding this comment

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

@#$%! I thought I got that all cleaned up 🐼

@nulltoken
Copy link
Member

I really like this proposal!

@nulltoken nulltoken added this to the v0.22 milestone Jun 15, 2015
nulltoken added a commit that referenced this pull request Jun 16, 2015
Adding support for message formatting in exception c'tors
@nulltoken nulltoken merged commit 687b4e0 into libgit2:vNext Jun 16, 2015
@nulltoken
Copy link
Member

✨ ✨ ✨ ✨

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.

2 participants
0