ironmansoftware / universal-dashboard

Build beautiful websites with PowerShell.

Home Page:https://universaldashboard.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Better Error Handling in Components

adamdriscoll opened this issue · comments

It's really annoying when you have problem in one component and one of two things happens.

The dashboard doesn't start at all

There is a terminating error that just propogates up and prevents the dashboard from starting at all. Any component that has child components should use try\catch handlers and return a valid error so it's easier to find where a problem is.

The JavaScript causes the page to crash

If there is a problem with one of the components on the client side, the entire page just crashes and we see a white page. This should never happen. We need to make sure to have proper error handling on the client side

This should apply to both v2 and v3 frameworks.

Completed in PowerShell Universal 1.2