opkg: Consolidate error reporting from opkg_conf_init and ensure return value is
[oweals/opkg-lede.git] / libopkg / libopkg.c
index dba19838f47862e552c6337ac3a15aa7374bbdb8..68da96d355a61184c05f590f71dcb10c7954de16 100644 (file)
@@ -271,6 +271,7 @@ opkg_packages_download (args_t * args, const char *name)
        err = opkg_conf_init (&opkg_conf, args);
        if (err)
        {
+               opkg_print_error_list (&opkg_conf);
                return err;
        }
 
@@ -485,6 +486,7 @@ opkg_op (int argc, char *argv[])
        err = opkg_conf_init (&opkg_conf, &args);
        if (err)
        {
+               opkg_print_error_list (&opkg_conf);
                return err;
        }