Closed BillFoster closed 11 years ago
I've added a more helpful error message. In that question, you were referring to a variable d
which isn't defined.
Thanks - it was hidden in the advice, I had edited a previous question and did not check there for old variables. I cannot get ttest to work - I find the documentation on the jStats site rather confusing! I am not sure what it means by value.
From: Christian Perfect [notifications@github.com] Sent: 13 September 2012 15:50 To: numbas/Numbas Cc: Bill Foster Subject: Re: [Numbas] Opaque error message on running a question (#214)
I've added a more helpful error message. In that question, you were referring to a variable d which isn't defined.
— Reply to this email directly or view it on GitHubhttps://github.com/numbas/Numbas/issues/214#issuecomment-8530717.
The question http://tallaght.ncl.ac.uk/question/393/psy2012_a1/ generates an obscure error message.
TypeError: Cannot use 'in' operator to search for '0' in d at newBuiltin.evaluate (http://tallaght.ncl.ac.uk/numbas-previews/5b5308bd-b194-41a9-8c54-af5703db01d6/scripts/jme.js:1673:19) at Object.Numbas.jme.evaluate (http://tallaght.ncl.ac.uk/numbas-previews/5b5308bd-b194-41a9-8c54-af5703db01d6/scripts/jme.js:461:18) at Object.Numbas.jme.texsubvars (http://tallaght.ncl.ac.uk/numbas-previews/5b5308bd-b194-41a9-8c54-af5703db01d6/scripts/jme.js:716:18) etc.......
I cannot see anything wrong with the question. Any help appreciated!