beremiz
Clone
Summary
Browse
Changes
Graph
SVGHMI: nicer error message
svghmi
2020-09-02, Edouard Tisserant
44dd48070e41
Parents
f9d494d11339
Children
ffce85221ea5
SVGHMI: nicer error message
1 files changed, 2 insertions(+), 1 deletions(-)
+2
-1
svghmi/svghmi.py
--- a/svghmi/svghmi.py Tue Sep 01 11:15:48 2020 +0200
+++ b/svghmi/svghmi.py Wed Sep 02 11:45:41 2020 +0200
@@ -216,7 +216,8 @@
hmi_types_instances.pop(i)
break
- assert(hmi_tree_root is not None)
+ if hmi_tree_root is None:
+ self.FatalError("SVGHMI : Library is selected but not used. Please either deselect it in project config or add a SVGHMI node to project.")
# deduce HMI tree from PLC HMI_* instances
for v in hmi_types_instances: