onloaderror: always pass a parameter adding some details to simplify deb...

...ugging

Cheers, Philip