diff options
context:
space:
mode:
Diffstat (limited to 'source/ui-blame.c')
-rw-r--r--source/ui-blame.c14
1 file changed, 7 insertions, 7 deletions
diff --git a/source/ui-blame.c b/source/ui-blame.c
index a7010d0..c25c2b3 100644
--- a/source/ui-blame.c
+++ b/source/ui-blame.c
@@ -278,12 +278,12 @@ static void print_blame_page(const struct object_id *oid, const char *path,
type = odb_read_object_info(the_repository->objects, oid, &size);
if (type == OBJ_BAD) {
- cgit_print_error_page(404, "Not found", "Bad object name: %s",
+ cgit_print_error_page(404, "Not Found", "Bad object name: %s",
oid_to_hex(oid));
return;
}
if (ctx.cfg.max_blob_size && size / 1024 > (unsigned long)ctx.cfg.max_blob_size) {
- cgit_print_error_page(413, "Too large",
+ cgit_print_error_page(413, "Content Too Large",
"blob size (%luKB) exceeds display size limit (%dKB)",
size / 1024, ctx.cfg.max_blob_size);
return;
@@ -291,7 +291,7 @@ static void print_blame_page(const struct object_id *oid, const char *path,
buf = odb_read_object(the_repository->objects, oid, &type, &size);
if (!buf) {
- cgit_print_error_page(500, "Internal server error",
+ cgit_print_error_page(500, "Internal Server Error",
"Error reading object %s", oid_to_hex(oid));
return;
}
@@ -420,13 +420,13 @@ void cgit_print_blame(void)
rev = ctx.qry.head;
if (repo_get_oid(the_repository, rev, &oid)) {
- cgit_print_error_page(404, "Not found",
+ cgit_print_error_page(404, "Not Found",
"Invalid revision name: %s", rev);
return;
}
commit = lookup_commit_reference(the_repository, &oid);
if (!commit || repo_parse_commit(the_repository, commit)) {
- cgit_print_error_page(404, "Not found",
+ cgit_print_error_page(404, "Not Found",
"Invalid commit reference: %s", rev);
return;
}
@@ -438,9 +438,9 @@ void cgit_print_blame(void)
read_tree(the_repository, repo_get_commit_tree(the_repository, commit),
&paths, walk_tree, &walk);
if (walk.found == TARGET_MISSING)
- cgit_print_error_page(404, "Not found", "Not found");
+ cgit_print_error_page(404, "Not Found", "Not found");
else if (walk.found == TARGET_FOLDER)
- cgit_print_error_page(404, "No blame for folders",
+ cgit_print_error_page(404, "Not Found",
"Blame is not available for folders.");
free(walk.rev);