]> git.sesse.net Git - vlc/commitdiff
Be more verbose about the failure if we return a non-null exit code
authorChristophe Mutricy <xtophe@videolan.org>
Sat, 31 May 2008 23:42:33 +0000 (00:42 +0100)
committerChristophe Mutricy <xtophe@videolan.org>
Sat, 31 May 2008 23:42:33 +0000 (00:42 +0100)
src/vlc.c

index 45a603481f741dca4a1864146fc1fe7a4effbe06..12833b79fcd74a00732d6e8b410e09190cdd4f17 100644 (file)
--- a/src/vlc.c
+++ b/src/vlc.c
@@ -131,6 +131,9 @@ int main( int i_argc, const char *ppsz_argv[] )
         libvlc_release (vlc);
     }
     i_ret = libvlc_exception_raised (&ex);
+    if( i_ret )
+        fprintf( stderr, "%s\n", libvlc_exception_get_message( &ex));
+
     libvlc_exception_clear (&ex);
 
     for (int i = 0; i < i_argc; i++)