[PATCH] Consolidate the error handling
[gitweb.git] / commit-tree.c
index 352ded104cb33c1a9f4626cc89017a8c77c7e089..ef1f068510e5851ab2f1219eae244ef861cefa13 100644 (file)
@@ -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);