Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

otter.assign.utils.AssignNotebookFormatException show more informative error messages #398

Closed
eroubenoff opened this issue Sep 12, 2021 · 1 comment · Fixed by #399
Closed
Labels
enhancement New feature or request
Milestone

Comments

@eroubenoff
Copy link

eroubenoff commented Sep 12, 2021

When using otter assign, error messages display the cell number where the error occurs, which isn't necessarily trivial to find in a larger notebook. For ex, in the following message, it isn't necessarily easy to find cell 143 without counting. Could this message display the question metadata, like, Found a begin question <<question name>> cell inside another question <<question name>>?

image

Thank you!

@eroubenoff eroubenoff added the enhancement New feature or request label Sep 12, 2021
@chrispyles chrispyles added this to the v3.1.4 milestone Sep 12, 2021
@chrispyles
Copy link
Member

chrispyles commented Sep 12, 2021

Good suggestion @eroubenoff! I've opened #399 which updates the exception message to look like this:

otter.assign.utils.AssignNotebookFormatException: Found a begin question cell inside another 
question (question q2_3, cell number 57)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants