Better error reporting in wav loading.