mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 03:57:27 +00:00
refactor: add error handling for cases where type isn't found
This commit is contained in:
parent
1b9f16ea74
commit
9b2611be02
2 changed files with 13 additions and 1 deletions
|
|
@ -219,6 +219,11 @@ namespace PepperDash.Essentials
|
|||
|
||||
var panel = GetPanelForType(dc.Type, comm.IpIdInt, props.ProjectName);
|
||||
|
||||
if (panel == null)
|
||||
{
|
||||
Debug.Console(0, "Unable to create Touchpanel for type {0}. Touchpanel Controller WILL NOT function correctly", dc.Type);
|
||||
}
|
||||
|
||||
Debug.Console(1, "Factory Attempting to create new EssentialsTouchpanelController");
|
||||
|
||||
var panelController = new EssentialsTouchpanelController(dc.Key, dc.Name, panel, props);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue