10BC0 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

Conversation

@whoisj
Copy link
8000 @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

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