Commit 7e7726e4 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

modules: print error if reading the plugins cache fails

(as opposed to reaching premature end-of-file)
parent 8b0dd8cf
......@@ -385,6 +385,8 @@ size_t CacheLoad( vlc_object_t *p_this, const char *dir, module_cache_t **r )
return i_cache;
error:
if (ferror (file))
msg_Err(p_this, "plugins cache read error: %s", vlc_strerror_c(errno));
msg_Warn( p_this, "plugins cache not loaded (corrupted)" );
/* TODO: cleanup */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment