Add onError function to log error before render