aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/fm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fm.c b/src/fm.c
index a7e1722..b91202f 100644
--- a/src/fm.c
+++ b/src/fm.c
@@ -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")) {