(menu) Tell the user about the directory listing error

This commit is contained in:
Higor Eurípedes 2015-05-14 20:55:37 -03:00
parent 67ffac265b
commit fab2b1055f

View File

@ -246,7 +246,14 @@ static int menu_displaylist_parse(menu_displaylist_info_t *info, bool *need_sort
MENU_FILE_USE_DIRECTORY, 0);
if (!str_list)
return -1;
{
const char *str = path_is_compressed
? "Unable to read compressed file"
: "Directory not found";
menu_list_push(info->list, str, "", 0, 0);
return 0;
}
dir_list_sort(str_list, true);