kojakangas / LinearAlgebraHW

A program assigning linear algebra problems for students
0 stars 0 forks source link

Catch the errors that would occur if a student submitted a question on a deleted assignment #127

Closed Cooper640 closed 10 years ago

Cooper640 commented 10 years ago

Only circumstance where this will happen is if the instructor deletes and assignment which a student is currently working a question for. The student would see database errors since the assignment wouldn't exist when they submitted. So we could just add a check at the start of the grading process to make sure the assignment exists and if it doesn't then give them a notification and redirect them to the homepage when they press ok on it.

kojakangas commented 10 years ago

Issue addressed via caution div in the answer section of the page and an alert box, may change later.