Merge branch 'master' of git://github.com/alshopov/git-po
[gitweb.git] / lockfile.c
index fb78bda495574d57701dd5148557b4e6badefbc9..993bb8274833651159cec6f0571b5b555ea073ca 100644 (file)
@@ -276,7 +276,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;