Skip to content

Commit

Permalink
Merge pull request libgit2#602 from arrbee/more-error-handling
Browse files Browse the repository at this point in the history
More error handling conversions
  • Loading branch information
arrbee committed Mar 21, 2012
2 parents 0d0fa7c + a4c291e commit a227451
Show file tree
Hide file tree
Showing 16 changed files with 520 additions and 559 deletions.
4 changes: 3 additions & 1 deletion include/git2/errors.h
Expand Up @@ -123,12 +123,14 @@ typedef struct {
typedef enum {
GITERR_NOMEMORY,
GITERR_OS,
GITERR_INVALID,
GITERR_REFERENCE,
GITERR_ZLIB,
GITERR_REPOSITORY,
GITERR_CONFIG,
GITERR_REGEX,
GITERR_ODB
GITERR_ODB,
GITERR_INDEX
} git_error_class;

/**
Expand Down
4 changes: 2 additions & 2 deletions src/fileops.c
Expand Up @@ -108,10 +108,10 @@ mode_t git_futils_canonical_mode(mode_t raw_mode)
return S_IFREG | GIT_CANONICAL_PERMS(raw_mode);
else if (S_ISLNK(raw_mode))
return S_IFLNK;
else if (S_ISDIR(raw_mode))
return S_IFDIR;
else if (S_ISGITLINK(raw_mode))
return S_IFGITLINK;
else if (S_ISDIR(raw_mode))
return S_IFDIR;
else
return 0;
}
Expand Down

0 comments on commit a227451

Please sign in to comment.