summaryrefslogtreecommitdiff
path: root/src/blob.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlosmn@github.com>2017-01-13 17:05:58 +0100
committerGitHub <noreply@github.com>2017-01-13 17:05:58 +0100
commita6d833a29e100cae66d5144367e9102d093d4dbd (patch)
treee57dce696483b3c166535e75aefe0feedad6b0d8 /src/blob.c
parentffe259d9e52a472b172d9834ed44a98fd1ce4d1a (diff)
parent8f0d5cdef9e2cb53c2f455d0a449f25c87647811 (diff)
downloadlibgit2-a6d833a29e100cae66d5144367e9102d093d4dbd.tar.gz
Merge pull request #4049 from libgit2/ethomson/error_msgs
giterr_set: consistent error messages
Diffstat (limited to 'src/blob.c')
-rw-r--r--src/blob.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/blob.c b/src/blob.c
index 1926c9e58..cd5df3537 100644
--- a/src/blob.c
+++ b/src/blob.c
@@ -96,7 +96,7 @@ static int write_file_stream(
p_close(fd);
if (written != file_size || read_len < 0) {
- giterr_set(GITERR_OS, "Failed to read file into stream");
+ giterr_set(GITERR_OS, "failed to read file into stream");
error = -1;
}
@@ -142,7 +142,7 @@ static int write_symlink(
read_len = p_readlink(path, link_data, link_size);
if (read_len != (ssize_t)link_size) {
- giterr_set(GITERR_OS, "Failed to create blob. Can't read symlink '%s'", path);
+ giterr_set(GITERR_OS, "failed to create blob: cannot read symlink '%s'", path);
git__free(link_data);
return -1;
}
@@ -186,7 +186,7 @@ int git_blob__create_from_paths(
goto done;
if (S_ISDIR(st.st_mode)) {
- giterr_set(GITERR_ODB, "cannot create blob from '%s'; it is a directory", content_path);
+ giterr_set(GITERR_ODB, "cannot create blob from '%s': it is a directory", content_path);
error = GIT_EDIRECTORY;
goto done;
}