From 28b944d2500a6ca38c17aa3ba7d7aad166b7ce07 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 11 Nov 2014 12:58:56 +0200 Subject: add some console bug logs where preconditions are wrong (oh, eiffel..) --- scripts/textanalysis.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scripts/textanalysis.js') diff --git a/scripts/textanalysis.js b/scripts/textanalysis.js index 2465a3ab..e5729ef3 100644 --- a/scripts/textanalysis.js +++ b/scripts/textanalysis.js @@ -163,6 +163,9 @@ var textAnalyser = function (newtext, finalize) { START = "START"; function addNode(name, type, state) { + if (type === undefined) { + console.log('bug: textanalyser.addNode of type undefined'); + } ret.nodes.push({'name':name, 'type':type, 'state':state}); } function addLink(src, dst, name, state) { -- cgit v1.3.1