summaryrefslogtreecommitdiffstats
path: root/libhb/hb.c
diff options
context:
space:
mode:
authorsr55 <[email protected]>2019-01-28 20:24:17 +0000
committersr55 <[email protected]>2019-01-28 20:24:58 +0000
commit8bada3b2174e641ed8f39794c24755e35f780fc7 (patch)
tree4ee31516e061d64a85e6d3cdca732df4cde8337d /libhb/hb.c
parentb6eae2ac12a87686203b48ae09d91a00514f1c39 (diff)
libhb: Temporarily log out the error code for unlink to figure out why previews are not being removed for a user. #1851
Diffstat (limited to 'libhb/hb.c')
-rw-r--r--libhb/hb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libhb/hb.c b/libhb/hb.c
index 3be050a9a..c8c4b1c5a 100644
--- a/libhb/hb.c
+++ b/libhb/hb.c
@@ -331,7 +331,10 @@ void hb_remove_previews( hb_handle_t * h )
{
free(filename);
filename = hb_strdup_printf("%s/%s", dirname, entry->d_name);
- unlink( filename );
+ int ulerr = unlink( filename );
+ if (ulerr < 0) {
+ hb_log("Unable to remove preview: %i - %s", ulerr, filename);
+ }
free(filename);
break;
}