]> git.sesse.net Git - vlc/commitdiff
modules: print error if reading the plugins cache fails
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 7 Feb 2015 18:42:08 +0000 (20:42 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 8 Feb 2015 09:07:20 +0000 (11:07 +0200)
(as opposed to reaching premature end-of-file)

src/modules/cache.c

index f94d091550fb5ba8b3a022034e80de73fbb866c4..16f008af5374c8412b65c7148860b1ce49030169 100644 (file)
@@ -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 */