From 05314b5bf449211726ca7d84f15db3077375a3cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Tue, 29 Mar 2011 12:25:46 +0200 Subject: [PATCH] Make GIT_EINVALIDTYPE available for use in config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Carlos Martín Nieto --- include/git2/common.h | 2 +- src/errors.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/git2/common.h b/include/git2/common.h index 34efe808b..ec338db4e 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 880163f78..1dc54f945 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"},