Add an error reporting function to video