# Vision - closing error box popup via scripting

**URL:** <https://forum.inductiveautomation.com/t/vision-closing-error-box-popup-via-scripting/62902>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [August 11, 2022, 5:24am UTC](https://forum.inductiveautomation.com/t/vision-closing-error-box-popup-via-scripting/62902 "2022-08-11T05:24:44Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 11, 2022, 4:55pm UTC](https://forum.inductiveautomation.com/t/vision-closing-error-box-popup-via-scripting/62902/3 "2022-08-11T16:55:38Z")

</div>

You could use the first half of my code here to statically retrieve the error & warning panels:

> [@Getting the Error Messages Dialog Text Through Script](https://forum.inductiveautomation.com/t/getting-the-error-messages-dialog-text-through-script/59983/4):
>
> from com.inductiveautomation.ignition.client.util.gui import ErrorUtil from org.apache.commons.lang3.reflect import FieldUtils errorPanel = FieldUtils.readStaticField(ErrorUtil, "errorPanel", True) warningPanel = FieldUtils.readStaticField(ErrorUtil, "warningPanel", True) errors = FieldUtils.readField(errorPanel, "errors", True) warnings = FieldUtils.readField(warningPanel, "errors", True) for error in errors: print error.title print error.message print error.exception for warning in warn…

That returns an ErrorPanel, which is a JPanel, so you should be able to walk up from it to the JWindow.

---

_[View the full topic](https://forum.inductiveautomation.com/t/vision-closing-error-box-popup-via-scripting/62902)._
