]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Print detailed error information when opening cmd pipe/socketpair fails
authorDimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Sat, 25 Dec 2021 21:28:54 +0000 (22:28 +0100)
committerDaniel Lenski <dlenski@gmail.com>
Thu, 10 Feb 2022 22:56:10 +0000 (14:56 -0800)
commitcd06be2e5f5569d20138ce75a873ef59a1ceb74e
tree737f86f51ebfd19c137a0081b5b28eb25d7bfd19
parent2c11cc84a31ea37fad127cdb4e41c966f41f9079
Print detailed error information when opening cmd pipe/socketpair fails

Retrieve and print detailed information using GetLastError() and
strerror().

This should be more useful to end-users than the current message (simply
“Error opening cmd pipe”) and might have helped us to solve
https://gitlab.com/openconnect/openconnect/-/issues/228 more quickly.

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Signed-off-by: Daniel Lenski <dlenski@gmail.com>
main.c