# when error go to error scene

**URL:** <https://discussions.unity.com/t/when-error-go-to-error-scene/602159>\
**Category:** Scene & World Building\
**Tags:** Scripting\
**Created:** [October 20, 2015, 7:47am UTC](https://discussions.unity.com/t/when-error-go-to-error-scene/602159 "2015-10-20T07:47:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghiboz](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/ghiboz/32/83687_2.png) [@ghiboz](https://discussions.unity.com/u/ghiboz)\
**Post date:** [October 20, 2015, 7:47am UTC](https://discussions.unity.com/t/when-error-go-to-error-scene/602159/1 "2015-10-20T07:47:23Z")

</div>

hi all!  
it’s possible if some error happens on my base scene load a error.scene that shows the error log?  
I wish some ‘standard’ thing, 'cause I load some assets that may have some wrong things and wish not check everything, but load it, and in case of error, load the error.scene  
thanks in advance!

---

<div class="post-metadata">

**Author:** ![Timelog](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/timelog/32/307301_2.png) [@Timelog](https://discussions.unity.com/u/Timelog)\
**Post date:** [October 20, 2015, 7:58am UTC](https://discussions.unity.com/t/when-error-go-to-error-scene/602159/2 "2015-10-20T07:58:44Z")

</div>

The first question that comes to mind is, why not use the normal console to log errors?

But if you really want a custom scene to load when an error occurs and the error could occur in script, then you could use a try-catch block to catch any error that occurs: [Exception-handling statements - throw and try, catch, finally - C# reference | Microsoft Learn](https://msdn.microsoft.com/en-us/library/0yd65esw.aspx)

Then you could create a gameobject with a script that logs the error information (use DontDestroyOnLoad) and then load an error scene that outputs any info from that object.
