Skip to content

Commit b785003

Browse files
committed
cat-file: fix remaining error and warning message formatting
The CodingGuidelines state that error messages should not begin with a capital letter and should not end with a full stop. Fix the remaining die() and warning() messages in builtin/cat-file.c that violate these rules: lowercase "Cannot read object" and reformat the promisor remotes warning to not start with a capital letter and to use a semicolon instead of a full stop. Signed-off-by: Md Ferdous Alam <mdferdousalam1989@yahoo.com>
1 parent b76846a commit b785003

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

builtin/cat-file.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ static int cat_one_file(int opt, const char *exp_type, const char *obj_name)
200200
buf = odb_read_object(the_repository->objects, &oid,
201201
&type, &size);
202202
if (!buf)
203-
die("Cannot read object %s", obj_name);
203+
die("cannot read object %s", obj_name);
204204

205205
if (use_mailmap) {
206206
size_t s = size;
@@ -910,7 +910,7 @@ static int batch_objects(struct batch_options *opt)
910910
data.skip_object_info = 1;
911911

912912
if (repo_has_promisor_remote(the_repository))
913-
warning("This repository uses promisor remotes. Some objects may not be loaded.");
913+
warning("this repository uses promisor remotes; some objects may not be loaded");
914914

915915
disable_replace_refs();
916916

0 commit comments

Comments
 (0)