diff options
author | nulltoken <emeric.fermas@gmail.com> | 2012-06-09 22:45:41 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-06-09 22:45:41 +0400 |
commit | e0f0bd10cc41711c2903d01fd5ac6cf5f2555f42 (patch) | |
tree | 3275889eea6fa4297221ad91af17bd9b5c878d8f /LibGit2Sharp/Reference.cs | |
parent | a5ffcb3e6ad435017ab01be0a16599b7c9daeb87 (diff) |
Simplify the formating of exception messages
Diffstat (limited to 'LibGit2Sharp/Reference.cs')
-rw-r--r-- | LibGit2Sharp/Reference.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LibGit2Sharp/Reference.cs b/LibGit2Sharp/Reference.cs index 9c530624..0ae062d9 100644 --- a/LibGit2Sharp/Reference.cs +++ b/LibGit2Sharp/Reference.cs @@ -52,7 +52,7 @@ namespace LibGit2Sharp break; default: - throw new LibGit2SharpException(String.Format(CultureInfo.InvariantCulture, "Unable to build a new reference from a type '{0}'.", Enum.GetName(typeof(GitReferenceType), type))); + throw new LibGit2SharpException(String.Format(CultureInfo.InvariantCulture, "Unable to build a new reference from a type '{0}'.", type)); } return reference as T; |