From 2de381f919829aec1e35d6c7cc33519295dcd053 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Wed, 13 Apr 2005 02:28:48 -0700 Subject: [PATCH] Consolidate the error handling Now there is error() for "library" errors and die() for fatal "application" errors. usage() is now used strictly only for usage errors. Signed-off-by: Petr Baudis --- rev-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rev-tree.c') diff --git a/rev-tree.c b/rev-tree.c index f2414b20fe..8c19b3161f 100644 --- a/rev-tree.c +++ b/rev-tree.c @@ -179,7 +179,7 @@ static void read_cache_file(const char *path) char line[500]; if (!file) - usage("bad revtree cache file (%s)", path); + die("bad revtree cache file (%s)", path); while (fgets(line, sizeof(line), file)) { unsigned long date; -- cgit v1.2.3