diff options
Diffstat (limited to 'src/fm.c')
| -rw-r--r-- | src/fm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -149,7 +149,7 @@ fm_getdir(file_list *list, const char *path) { DIR *dir = opendir(path); if (!dir) { - log_write(LOG_ERR, "Cannot open directory"); + log_write(LOG_ERR, "Cannot open directory, path = %s", path); return NULL; } @@ -267,7 +267,7 @@ fm_preview_file(window *w, const char *path) char *file_type = detect_file_type(path); FILE *fp = fopen(path, "r"); if (!fp) { - mvwprintw(w->win, 0, 0, "<Cannot open file>"); + mvwprintw(w->win, 0, 0, "Cannot open file, path = %s", path); free(file_type); return false; } else if (strstr(file_type, "text")) { |
