Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-06-09 22:45:41 +0400
committernulltoken <emeric.fermas@gmail.com>2012-06-09 22:45:41 +0400
commite0f0bd10cc41711c2903d01fd5ac6cf5f2555f42 (patch)
tree3275889eea6fa4297221ad91af17bd9b5c878d8f /LibGit2Sharp/Reference.cs
parenta5ffcb3e6ad435017ab01be0a16599b7c9daeb87 (diff)
Simplify the formating of exception messages
Diffstat (limited to 'LibGit2Sharp/Reference.cs')
-rw-r--r--LibGit2Sharp/Reference.cs2
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;