diff options
| author | Alon Levy <alon@pobox.com> | 2014-11-11 12:58:56 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-11-11 12:58:56 +0200 |
| commit | 28b944d2500a6ca38c17aa3ba7d7aad166b7ce07 (patch) | |
| tree | fbb3a6a20b4e3e4f89bddcc8d00fd0a1f24b7d74 /scripts/textanalysis.js | |
| parent | 52746e7e4bda6a118cb78622dfe2948c543b6264 (diff) | |
add some console bug logs where preconditions are wrong (oh, eiffel..)
Diffstat (limited to 'scripts/textanalysis.js')
| -rw-r--r-- | scripts/textanalysis.js | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |
