Przeglądaj źródła

More informative error when an invalid state reference is made as target in a transition.

Yentl Van Tendeloo 9 lat temu
rodzic
commit
684436bb1a

+ 1 - 1
src/python_sccd/python_sccd_compiler/state_linker.py

@@ -101,7 +101,7 @@ class StateLinker(Visitor):
                         current_node = child
                         break
                 if not found :
-                    raise StateReferenceException("Refering to non exiting node at posisition " + str(token.pos) + " in state reference.")
+                    raise StateReferenceException("Refering to non exiting node " + cname + " at posisition " + str(token.pos) + " in state reference.")
             elif token.type == TokenType.LBRACKET :
                 split_stack.append(current_node)
             elif token.type == TokenType.RBRACKET :