
I've been using the TokenActions script that was developed by Kevin. It's been working fine (and saved me a lot of work) for several weeks now but, suddenly today, it started generating errors and I don't know what's going on. The errors are below. Note that I never call handleMessages directly and msg is only used in one function and that looks ok to me. Can anyone help me to understand what's going on?
Btw, once I get all the bugs out, I'm hoping to get this into the script library so that others can use it. As I said, it's been tremendously useful.
Thanks.
ReferenceError: msg is not defined
at handleMessages (apiscript.js:608:22)
at eval (eval at <anonymous> (/home/node/d20-api-server/api.js:154:1), <anonymous>:65:16)
at Object.publish (eval at <anonymous> (/home/node/d20-api-server/api.js:154:1), <anonymous>:70:8)
at /home/node/d20-api-server/api.js:1648:12
at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:560
at hc (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:39:147)
at Kd (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:546)
at Id.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:93:489)
at Zd.Ld.Mb (/home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:94:425)
at /home/node/d20-api-server/node_modules/firebase/lib/firebase-node.js:111:400
Script: TokenAction script