diff options
author | Vicent Martà <vicent@github.com> | 2013-05-06 06:45:53 -0700 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-05-06 06:45:53 -0700 |
commit | 03c28d92d00074f1501cb0d7ce9f5e3e0154a244 (patch) | |
tree | 64c394dc10a839fd0766a800ff31a1d0236360d6 /src/fileops.c | |
parent | d5e5bbd7193924aa845e107f747a15814a679b10 (diff) | |
parent | 6e286e8dc59874db30b6fbb0ca5d32d4a2b5642c (diff) | |
download | libgit2-03c28d92d00074f1501cb0d7ce9f5e3e0154a244.tar.gz |
Merge pull request #1526 from arrbee/cleanup-error-return-without-msg
Make sure error messages are set for most error returns
Diffstat (limited to 'src/fileops.c')
-rw-r--r-- | src/fileops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fileops.c b/src/fileops.c index 36f601706..98ab8efe3 100644 --- a/src/fileops.c +++ b/src/fileops.c @@ -988,8 +988,10 @@ int git_futils_filestamp_check( if (stamp == NULL) return 1; - if (p_stat(path, &st) < 0) + if (p_stat(path, &st) < 0) { + giterr_set(GITERR_OS, "Could not stat '%s'", path); return GIT_ENOTFOUND; + } if (stamp->mtime == (git_time_t)st.st_mtime && stamp->size == (git_off_t)st.st_size && |