]> git.ipfire.org Git - thirdparty/git.git/blobdiff - lockfile.c
copy.c: make copy_fd() report its status silently
[thirdparty/git.git] / lockfile.c
index 4f16ee78ce3dbc263a762a8800dfe9ddfcfaecd5..beba0ed48038f020e7992187dee1a09cfc9c2c9f 100644 (file)
@@ -206,7 +206,7 @@ int hold_lock_file_for_append(struct lock_file *lk, const char *path, int flags)
                int save_errno = errno;
 
                if (flags & LOCK_DIE_ON_ERROR)
-                       exit(128);
+                       die("failed to prepare '%s' for appending", path);
                close(orig_fd);
                rollback_lock_file(lk);
                errno = save_errno;