mirror of
https://github.com/git/git
synced 2024-08-27 19:49:21 +00:00
fast-import.c: use error_errno()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
e1ebb3c25b
commit
6c223e4958
|
@ -414,7 +414,7 @@ static void write_crash_report(const char *err)
|
||||||
struct recent_command *rc;
|
struct recent_command *rc;
|
||||||
|
|
||||||
if (!rpt) {
|
if (!rpt) {
|
||||||
error("can't write crash report %s: %s", loc, strerror(errno));
|
error_errno("can't write crash report %s", loc);
|
||||||
free(loc);
|
free(loc);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1806,8 +1806,8 @@ static void dump_marks(void)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (hold_lock_file_for_update(&mark_lock, export_marks_file, 0) < 0) {
|
if (hold_lock_file_for_update(&mark_lock, export_marks_file, 0) < 0) {
|
||||||
failure |= error("Unable to write marks file %s: %s",
|
failure |= error_errno("Unable to write marks file %s",
|
||||||
export_marks_file, strerror(errno));
|
export_marks_file);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1822,8 +1822,8 @@ static void dump_marks(void)
|
||||||
|
|
||||||
dump_marks_helper(f, 0, marks);
|
dump_marks_helper(f, 0, marks);
|
||||||
if (commit_lock_file(&mark_lock)) {
|
if (commit_lock_file(&mark_lock)) {
|
||||||
failure |= error("Unable to write file %s: %s",
|
failure |= error_errno("Unable to write file %s",
|
||||||
export_marks_file, strerror(errno));
|
export_marks_file);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue