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 --- commit-tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commit-tree.c') diff --git a/commit-tree.c b/commit-tree.c index 352ded104c..ef1f068510 100644 --- a/commit-tree.c +++ b/commit-tree.c @@ -135,7 +135,7 @@ int main(int argc, char **argv) fprintf(stderr, "Committing initial tree %s\n", argv[1]); pw = getpwuid(getuid()); if (!pw) - usage("You don't exist. Go away!"); + die("You don't exist. Go away!"); realgecos = pw->pw_gecos; len = strlen(pw->pw_name); memcpy(realemail, pw->pw_name, len); -- cgit v1.2.3