mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-08 06:15:02 +00:00
Minor error fixes
Clear the error in pkt when we notice that the remote is starting to send the packfile. Fix the format string for Windows networking errors.
This commit is contained in:
parent
8d89c8e972
commit
65ca81a63e
@ -35,7 +35,7 @@ static void net_set_error(const char *str)
|
||||
size = FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
|
||||
0, error, 0, (LPSTR)&err_str, 0, 0);
|
||||
|
||||
giterr_set(GITERR_NET, "%s: $s", str, err_str);
|
||||
giterr_set(GITERR_NET, "%s: %s", str, err_str);
|
||||
LocalFree(err_str);
|
||||
}
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user