TeamBasedInquiryLearning / library

Monorepo for the TBIL library and project webpage
https://tbil.org
Other
3 stars 4 forks source link

Better error message in Checkit preview for an undefined outcome #287

Closed siwelwerd closed 2 months ago

siwelwerd commented 2 months ago

Currently, if you try to run preview_outcome.py with an outcome that is not defined in the bank.xml, an IndexError: list index out of range is raised, which is not very helpful (or at least, confused me for a couple minutes). This raises a more informative error, e.g. ValueError: E1 is not an outcome defined in source/precalculus/exercises/bank.xml

github-actions[bot] commented 2 months ago

🚀 Preview available 🚀

https://379f80a8.tbil.pages.dev

github-actions[bot] commented 2 months ago

🚀 Preview available 🚀

https://51aff6d8.tbil.pages.dev