]> git.sesse.net Git - vlc/blobdiff - test/libvlc/test.h
Replace libvlc_exception_get_message with libvlc_errmsg
[vlc] / test / libvlc / test.h
index 319318d66576dcbbf0af9005faab9e05daf82e11..7ac1f202084b2d8cc670228e29b71ef2b35e9454 100644 (file)
@@ -88,12 +88,9 @@ static inline void catch (void)
 {
     if (libvlc_exception_raised (&ex))
     {
-         fprintf (stderr, "Exception: %s\n",
-                  libvlc_exception_get_message (&ex));
+         fprintf (stderr, "Exception: %s\n", libvlc_errmsg ());
          abort ();
     }
-
-    assert (libvlc_exception_get_message (&ex) == NULL);
     libvlc_exception_clear (&ex);
 }