Add message during 404 for debugging

This commit is contained in:
Calen Pennington
2013-01-08 11:54:12 -05:00
parent c44898b1de
commit 4779043a5f

View File

@@ -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}))