Commit 428bcf0d authored by Rémi Duraffort's avatar Rémi Duraffort

lua: use msg_Err instead of fprintf (remaining debug).

parent 519fe4ca
...@@ -296,7 +296,7 @@ static void vlclua_timer_callback( void *data ) ...@@ -296,7 +296,7 @@ static void vlclua_timer_callback( void *data )
if( lua_pcall( L, 0, 0, 0 ) ) if( lua_pcall( L, 0, 0, 0 ) )
{ {
const char *psz_err = lua_tostring( L, -1 ); const char *psz_err = lua_tostring( L, -1 );
fprintf( stderr, "Error while running the timer callback: %s\n", psz_err ); msg_Err( vlclua_get_this( L ), "Error while running the timer callback: '%s'", psz_err );
lua_settop( L, 0 ); lua_settop( L, 0 );
} }
} }
......
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