We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0658ec commit 5cc026eCopy full SHA for 5cc026e
connected.c
@@ -86,17 +86,14 @@ static int check_everything_connected_real(sha1_iterate_fn fn,
86
memcpy(commit, sha1_to_hex(sha1), 40);
87
if (write_in_full(rev_list.in, commit, 41) < 0) {
88
if (errno != EPIPE && errno != EINVAL)
89
- error(_("failed write to rev-list: %s"),
90
- strerror(errno));
+ error_errno(_("failed write to rev-list"));
91
err = -1;
92
break;
93
}
94
} while (!fn(cb_data, sha1));
95
96
- if (close(rev_list.in)) {
97
- error(_("failed to close rev-list's stdin: %s"), strerror(errno));
98
- err = -1;
99
- }
+ if (close(rev_list.in))
+ err = error_errno(_("failed to close rev-list's stdin"));
100
101
sigchain_pop(SIGPIPE);
102
return finish_command(&rev_list) || err;
0 commit comments