diff options
| author | verdant <im@verdant.ee> | 2026-08-06 14:56:21 +0800 |
|---|---|---|
| committer | verdant <im@verdant.ee> | 2026-08-06 14:56:21 +0800 |
| commit | 35fb90df34d2fe41ff5597e26b6cec016829aade (patch) | |
| tree | 515633b83edade80dc9f0f9685669b2823f95a1f /src | |
| parent | 026f1d10feb2eb793781b99aa0550106063a3b7a (diff) | |
| download | sf-master.tar.gz sf-master.zip | |
Diffstat (limited to 'src')
| -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")) { |
