core: Log an error when a URLLoader load fails

This commit is contained in:
Lord-McSweeney 2024-07-16 10:42:40 +03:00 committed by TÖRÖK Attila
parent 53328c72f8
commit c0565d81e6
1 changed files with 6 additions and 0 deletions

View File

@ -1656,6 +1656,12 @@ impl<'gc> Loader<'gc> {
Avm2::dispatch_event(uc, complete_evt, target);
}
Err(response) => {
tracing::error!(
"Error during URLLoader load of {:?}: {:?}",
response.url,
response.error
);
// Testing with Flash shoes that the 'data' property is cleared
// when an error occurs