diff options
author | Petr Baudis <pasky@ucw.cz> | 2005-04-13 02:28:48 -0700 |
---|---|---|
committer | Petr Baudis <xpasky@machine> | 2005-04-13 02:28:48 -0700 |
commit | 2de381f919829aec1e35d6c7cc33519295dcd053 (patch) | |
tree | 3f703cd0cd32a4aa9892bda84c664c36e40f7921 /commit-tree.c | |
parent | bdd4da595a265a091a859754a22688f7351cddee (diff) | |
download | git-2de381f919829aec1e35d6c7cc33519295dcd053.tar.gz |
[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 <pasky@ucw.cz>
Diffstat (limited to 'commit-tree.c')
-rw-r--r-- | commit-tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |