diff options
author | sr55 <[email protected]> | 2019-01-28 20:24:17 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2019-01-28 20:24:58 +0000 |
commit | 8bada3b2174e641ed8f39794c24755e35f780fc7 (patch) | |
tree | 4ee31516e061d64a85e6d3cdca732df4cde8337d /libhb/hb.c | |
parent | b6eae2ac12a87686203b48ae09d91a00514f1c39 (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.c | 5 |
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; } |