result = (cmd->fun)(conf, argc, argv);
- if ( result == 0 ) {
- opkg_message(conf, OPKG_NOTICE, "Successfully terminated.\n");
- } else {
- opkg_message(conf, OPKG_NOTICE, "An error ocurred, return value: %d.\n", result);
+ if ( result != 0 ) {
+ opkg_message(conf, OPKG_NOTICE, "An error ocurred, return value: %d.\n", result);
}
+
if ( error_list ) {
reverse_error_list(&error_list);