diff options
author | Vicent Marti <tanoku@gmail.com> | 2010-05-28 01:48:59 +0200 |
---|---|---|
committer | Andreas Ericsson <ae@op5.se> | 2010-06-02 10:32:07 +0200 |
commit | 6bb7aa1318f7f31a346c71ef81d2b33c6fd41600 (patch) | |
tree | 6fdccd49f442a7204399ca9b418f017322dbded8 /src/git/common.h | |
parent | 0daa6cdcad92746551f78edfa93be0bc188d4f4a (diff) | |
download | libgit2-6bb7aa1318f7f31a346c71ef81d2b33c6fd41600.tar.gz |
Added new error codes. Improved error handling.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Signed-off-by: Andreas Ericsson <ae@op5.se>
Diffstat (limited to 'src/git/common.h')
-rw-r--r-- | src/git/common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/git/common.h b/src/git/common.h index 19c6a202c..2506dae36 100644 --- a/src/git/common.h +++ b/src/git/common.h @@ -77,6 +77,12 @@ /** Consult the OS error information. */ #define GIT_EOSERR (GIT_ERROR - 4) +/** The specified object is of invalid type */ +#define GIT_EOBJTYPE (GIT_ERROR - 5) + +/** The specified object has its data corrupted */ +#define GIT_EOBJCORRUPTED (GIT_ERROR - 6) + GIT_BEGIN_DECL /** A revision traversal pool. */ |