modules-load: use RET_GATHER, update error handling
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 9 Jul 2023 19:35:33 +0000 (13:35 -0600)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 13 Jul 2023 09:40:15 +0000 (11:40 +0200)
commiteb6cae1a402516f19fe71b2ed0146d2f417adacf
treea619a0ab7c949e6ca8d2dbf030a3b5cdb23ecaa8
parentfa989c74a6117e2d19c867e8c96fbe625930dd56
modules-load: use RET_GATHER, update error handling

We would try to return the first error, but conf_files_list_nulstr()
failure would terminate the app immediately. So let's just return the
error from conf_files_list_nulstr(), and the first error encountered for
other failures after which we continue.
src/modules-load/modules-load.c