Make GIT_EINVALIDTYPE available for use in config Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
diff --git a/include/git2/common.h b/include/git2/common.h
index 34efe80..ec338db 100644
--- a/include/git2/common.h
+++ b/include/git2/common.h
@@ -115,7 +115,7 @@
/** The specified repository is invalid */
#define GIT_ENOTAREPO (GIT_ERROR - 7)
-/** The object type is invalid or doesn't match */
+/** The object or config variable type is invalid or doesn't match */
#define GIT_EINVALIDTYPE (GIT_ERROR - 8)
/** The object cannot be written that because it's missing internal data */
diff --git a/src/errors.c b/src/errors.c
index 880163f..1dc54f9 100644
--- a/src/errors.c
+++ b/src/errors.c
@@ -13,7 +13,7 @@ static struct {
{GIT_EOBJTYPE, "The specified object is of invalid type"},
{GIT_EOBJCORRUPTED, "The specified object has its data corrupted"},
{GIT_ENOTAREPO, "The specified repository is invalid"},
- {GIT_EINVALIDTYPE, "The object type is invalid or doesn't match"},
+ {GIT_EINVALIDTYPE, "The object or config variable type is invalid or doesn't match"},
{GIT_EMISSINGOBJDATA, "The object cannot be written that because it's missing internal data"},
{GIT_EPACKCORRUPTED, "The packfile for the ODB is corrupted"},
{GIT_EFLOCKFAIL, "Failed to adquire or release a file lock"},