Commit 4779043a by Calen Pennington

Add message during 404 for debugging

parent c44898b1
......@@ -133,7 +133,7 @@ def redirect_to_course_position(course_module, first_time):
chapter = get_current_child(course_module)
if chapter is None:
# oops. Something bad has happened.
raise Http404
raise Http404("No chapter found when loading current position in course")
if not first_time:
return redirect(reverse('courseware_chapter', kwargs={'course_id': course_id,
'chapter': chapter.url_name}))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment