# onLoadErrorObservable for regular textures

**URL:** <https://forum.babylonjs.com/t/onloaderrorobservable-for-regular-textures/20548>\
**Category:** Questions\
**Created:** [May 4, 2021, 8:53am UTC](https://forum.babylonjs.com/t/onloaderrorobservable-for-regular-textures/20548 "2021-05-04T08:53:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mescalina](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mescalina/32/15512_2.png) [@Mescalina](https://forum.babylonjs.com/u/Mescalina)\
**Post date:** [May 4, 2021, 8:53am UTC](https://forum.babylonjs.com/t/onloaderrorobservable-for-regular-textures/20548/1 "2021-05-04T08:53:17Z")

</div>

Hi,

I was looking for a way to know if a regular texture fails to load for example because of an invalid path but I couldn’t find a solution.  
I’ve seen that the BABYLON.PhotoDome method provides a onLoadErrorObservable to use in order to detect loading errors.  
Is there a similar way to achieve this on a regular texture? Do you know why it is not implemented also for regular textures?

Thank a lot as usual 🙂

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [May 4, 2021, 10:39am UTC](https://forum.babylonjs.com/t/onloaderrorobservable-for-regular-textures/20548/2 "2021-05-04T10:39:55Z")

</div>

Have you tried to use the `onError` parameter of the texture constructor?

> **[Texture | Babylon.js Documentation](https://doc.babylonjs.com/typedoc/classes/babylon.texture#constructor)**
>
> This represents a texture in babylon. It can be easily loaded from a network, base64 or html input. \[API\]

---

<div class="post-metadata">

**Author:** ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)\
**Post date:** [May 4, 2021, 12:08pm UTC](https://forum.babylonjs.com/t/onloaderrorobservable-for-regular-textures/20548/3 "2021-05-04T12:08:05Z")

</div>

In addition to abovementioned `onError` parameter you may also check if the texture `isReady` - [Texture | Babylon.js Documentation](https://doc.babylonjs.com/typedoc/classes/babylon.texture#isready)

---

<div class="post-metadata">

**Author:** ![Mescalina](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/mescalina/32/15512_2.png) [@Mescalina](https://forum.babylonjs.com/u/Mescalina)\
**Post date:** [May 4, 2021, 4:22pm UTC](https://forum.babylonjs.com/t/onloaderrorobservable-for-regular-textures/20548/4 "2021-05-04T16:22:01Z")

</div>

Thanks both of you, I looked at the reference 20 times but because the onError is not in the properties or methods lists I didn’t see it, sorry 🙂  
Also the isReady I didn’t notice and I did my own method to achieve the same…

Thanks a lot.
