commit 75fd4eb22926dfdf6a5328e736d6fca91fcbfc87 from: Stefan Sperling date: Wed Mar 18 16:10:32 2020 UTC actually catch connection errors in got_fetch() commit - abd4a1be8b09933626cc061c35424c9df331f50c commit + 75fd4eb22926dfdf6a5328e736d6fca91fcbfc87 blob - 4dec0354207ecd7e099e1129aa88325841b2aa3d blob + b4b32476a836036ce708103689ae0997933c403d --- lib/fetch.c +++ lib/fetch.c @@ -324,9 +324,9 @@ got_fetch(char *uri, char *branch_filter, char *destdi err = got_error(GOT_ERR_BAD_PROTO); else err = got_error(GOT_ERR_BAD_PROTO); + if (err) + return err; - if (fetchfd == -1) - err = got_error_from_errno("dial uri"); if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, imsg_fetchfds) == -1) return got_error_from_errno("socketpair");