Mercurial > repos > blastem
changeset 934:05b0a0d4fa40
Add strerror output to menu dir open failure message
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 17 Feb 2016 22:58:07 -0800 |
parents | f7da9b4df0e7 |
children | 01fb50390b27 |
files | menu.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/menu.c Wed Feb 17 22:42:18 2016 -0800 +++ b/menu.c Wed Feb 17 22:58:07 2016 -0800 @@ -2,6 +2,7 @@ #include <stdlib.h> #include <string.h> #include <stdio.h> +#include <errno.h> #include "blastem.h" #include "menu.h" #include "backend.h" @@ -115,7 +116,7 @@ if (entries) { qsort(entries, num_entries, sizeof(dir_entry), menu_dir_sort); } else { - warning("Failed to open directory %s\n", menu->curpath); + warning("Failed to open directory %s: %s\n", menu->curpath, strerror(errno)); } uint8_t *dest; for (size_t i = 0; i < num_entries; i++)