diff options
context:
space:
mode:
Diffstat (limited to 'source/ui-tree.c')
-rw-r--r--source/ui-tree.c14
1 file changed, 7 insertions, 7 deletions
diff --git a/source/ui-tree.c b/source/ui-tree.c
index ce57f92..b742b64 100644
--- a/source/ui-tree.c
+++ b/source/ui-tree.c
@@ -173,13 +173,13 @@ static bool print_object(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",
+ cgit_print_error_page(404, "Not Found",
"Bad object name: %s", oid_to_hex(oid));
return false;
}
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 false;
@@ -187,7 +187,7 @@ static bool print_object(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 false;
}
@@ -434,7 +434,7 @@ static void ls_tree(const struct object_id *oid, const char *path,
tree = parse_tree_indirect(oid);
if (!tree) {
- cgit_print_error_page(404, "Not found",
+ cgit_print_error_page(404, "Not Found",
"Not a tree object: %s", oid_to_hex(oid));
return;
}
@@ -504,13 +504,13 @@ void cgit_print_tree(const char *rev, char *path)
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;
}
@@ -530,7 +530,7 @@ void cgit_print_tree(const char *rev, char *path)
} else if (walk.state == WALK_BLOB_SHOWN)
cgit_print_layout_end();
else if (walk.state == WALK_LOOKING)
- cgit_print_error_page(404, "Not found", "Path not found");
+ cgit_print_error_page(404, "Not Found", "Path not found");
// WALK_ERROR_SHOWN is left alone, since the error page print_object
// put out is already complete.