Download raw body.
silence harmless errors on tog exit
On Mon, Oct 24, 2022 at 09:49:23PM +1100, Mark Jamsek wrote: > On 22-10-24 12:33PM, Stefan Sperling wrote: > > Hide additional error messages which can show up if tog gets a Ctrl-C. > > Users don't need to be informed about these errors. > > > > ok? > > yes, ok I have found some more errors we can ignore while testing with 'G' to load all commits and hitting Ctrl-C while loading commits. Revised diff: diff /home/stsp/src/got commit - f044c8414b8ab21062f8866d8336fa7c8bf21897 path + /home/stsp/src/got blob - d78689fb84f34bff3df940c48dc3345304d01098 file + tog/tog.c --- tog/tog.c +++ tog/tog.c @@ -9378,7 +9378,11 @@ main(int argc, char *argv[]) free(cmd_argv); } - if (error && error->code != GOT_ERR_CANCELLED) + if (error && error->code != GOT_ERR_CANCELLED && + error->code != GOT_ERR_EOF && + error->code != GOT_ERR_PRIVSEP_EXIT && + error->code != GOT_ERR_PRIVSEP_PIPE && + !(error->code == GOT_ERR_ERRNO && errno == EINTR)) fprintf(stderr, "%s: %s\n", getprogname(), error->msg); return 0; }
silence harmless errors on tog exit